10 lines
325 B
YAML
10 lines
325 B
YAML
|
pre-commit:
|
||
|
parallel: true
|
||
|
commands:
|
||
|
js:
|
||
|
glob: "*.js"
|
||
|
run: "yarn prettier --write {staged_files} && yarn eslint {staged_files} && git add {staged_files}"
|
||
|
css:
|
||
|
glob: "*.{css,pcss}"
|
||
|
run: "yarn prettier --write {staged_files} && yarn stylelint --fix {staged_files} && git add {staged_files}"
|