feat(web): check style when commit (#980)

feat(web): check style when commit
This commit is contained in:
q1anx1
2022-08-08 00:10:31 +08:00
committed by GitHub
parent 4665ffa759
commit b14554a5ba
2 changed files with 345 additions and 7 deletions

View File

@ -63,6 +63,18 @@
"devDependencies": {
"cross-env": "^7.0.3",
"eslint": "^7.11.0",
"eslint-plugin-react": "^7.30.1"
"eslint-plugin-react": "^7.30.1",
"husky": "^4.3.8",
"lint-staged": "^13.0.3"
},
"lint-staged": {
"src/**/*.{js,jsx,css,sass,ts,tsx}": [
"yarn fix"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}