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:
David Négrier 2021-06-23 10:10:53 +02:00
parent ee07f637fa
commit bdc4b43c17
6 changed files with 249 additions and 9 deletions

1
.husky/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
cd front && yarn run precommit