Add hooks
- Add .huskyrc.json - Add .lintstagedrc.json - Add Husky and lint-staged dev dependencies
This commit is contained in:
parent
a7a8ca14b3
commit
f6a55bc1db
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"pre-push": "tap"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"*.js": ["eslint --fix", "prettier --write"],
|
||||
"*.{css,json,md}": "prettier --write"
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue