Lint code on commit with Husky npm

This commit is contained in:
Alex Gleason
2021-09-15 10:47:10 -05:00
parent 55ca03faaf
commit dbc20362fd
4 changed files with 13 additions and 1 deletions

View File

@ -25,7 +25,8 @@
"test:lint": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:lint:sass",
"test:lint:js": "npx eslint --ext=js . --cache",
"test:lint:sass": "npx stylelint app/styles/**.scss app/styles/**/*.scss",
"test:jest": "npx jest --coverage"
"test:jest": "npx jest --coverage",
"prepare": "husky install"
},
"license": "AGPL-3.0-or-later",
"browserslist": [
@ -170,6 +171,7 @@
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^7.0.2",
"jest": "^27.1.0",
"raf": "^3.4.1",
"react-intl-translations-manager": "^5.0.3",