Setting up prettier
In order not to wreak havoc on all the open PRs, Prettier will be added slowly, on every changed file, thanks to Husky (for a precommit hook) and lint-staged, for linting only staged files.
This commit is contained in:
parent
ee07f637fa
commit
bdc4b43c17
6 changed files with 249 additions and 9 deletions
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
_
|
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
cd front && yarn run precommit
|
Loading…
Add table
Add a link
Reference in a new issue