-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.06 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: prettier
name: prettier
entry: sh -c 'npx prettier --write $@ && git add $@' _
language: system
types_or: [javascript, jsx, ts, tsx, css, less, scss, markdown, json]
require_serial: true
stages:
- commit
- id: eslint
name: eslint
entry: sh -c 'npx eslint --fix $@ && git add $@' _
language: system
types_or: [javascript, jsx, ts, tsx]
require_serial: true
stages:
- commit
- id: stylelint
name: stylelint
entry: sh -c 'npx stylelint --fix $@ && git add $@' _
language: system
types_or: [css, less, scss]
require_serial: true
stages:
- commit
- id: packagelock
name: checking for ssh sources in package-lock.json
entry: ssh://
files: ^package-lock\.json$
language: pygrep
stages:
- commit