chore: add Husky

This commit is contained in:
MAZE
2023-10-05 16:50:44 +03:30
parent 6cad46040d
commit 3bed00a1ee
3 changed files with 23 additions and 1 deletions

View File

@@ -12,7 +12,8 @@
"lint:fix": "npm run lint -- --fix",
"lint:style": "stylelint ./**/*.{css,astro,html}",
"lint:style:fix": "npm run lint:style -- --fix",
"format": "prettier . --write"
"format": "prettier . --write",
"prepare": "husky install"
},
"dependencies": {
"@astrojs/react": "^3.0.3",
@@ -37,6 +38,7 @@
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-sort-destructure-keys": "1.5.0",
"eslint-plugin-sort-keys-fix": "1.1.2",
"husky": "8.0.3",
"lint-staged": "14.0.1",
"postcss-html": "1.5.0",
"prettier": "3.0.3",