Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Husky + lint-staged #398

Merged
merged 12 commits into from
Nov 21, 2022
Next Next commit
Add and setup husky
  • Loading branch information
theamrittimalsina committed Oct 14, 2022
commit a058a583862fd9fc80286d2fe4f48509f56ba5f4
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run test:eslint
MattIPv4 marked this conversation as resolved.
Show resolved Hide resolved
24 changes: 23 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"test:eslint": "eslint 'src/**/*.{js,vue}'",
"test:eslint:fix": "npm run test:eslint -- --fix",
"test:stylelint": "stylelint 'src/**/*.scss' --config node_modules/do-bulma/.stylelintrc.json",
"test:i18n-packs": "node --es-module-specifier-resolution=node src/nginxconfig/i18n/verify.js"
"test:i18n-packs": "node --es-module-specifier-resolution=node src/nginxconfig/i18n/verify.js",
"prepare": "husky install"
},
"jest": {
"testRegex": "/test/.*.js?$"
Expand Down Expand Up @@ -87,7 +88,8 @@
"stylelint-order": "^5.0.0",
"vue-template-compiler": "^2.7.10",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.6.1"
"webpack-bundle-analyzer": "^4.6.1",
"husky": "^7.0.0"
},
"overrides": {
"@vue/cli-service": {
Expand Down