Add hooks

- Add .huskyrc.json
- Add .lintstagedrc.json
- Add Husky and lint-staged dev dependencies
This commit is contained in:
Rafael Bardini 2020-07-05 14:36:56 +02:00
parent a7a8ca14b3
commit f6a55bc1db
4 changed files with 920 additions and 0 deletions

6
.huskyrc.json Normal file
View File

@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "tap"
}
}

4
.lintstagedrc.json Normal file
View File

@ -0,0 +1,4 @@
{
"*.js": ["eslint --fix", "prettier --write"],
"*.{css,json,md}": "prettier --write"
}

908
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,8 @@
},
"devDependencies": {
"eslint": "7.4.0",
"husky": "4.2.5",
"lint-staged": "10.2.11",
"prettier": "2.0.5",
"tap": "14.10.7"
}