mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 00:44:14 +00:00
chore: add Husky
This commit is contained in:
parent
6cad46040d
commit
3bed00a1ee
3 changed files with 23 additions and 1 deletions
4
.husky/pre-commit
Normal file
4
.husky/pre-commit
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx lint-staged
|
||||||
16
package-lock.json
generated
16
package-lock.json
generated
|
|
@ -30,6 +30,7 @@
|
||||||
"eslint-plugin-react-hooks": "4.6.0",
|
"eslint-plugin-react-hooks": "4.6.0",
|
||||||
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
||||||
"eslint-plugin-sort-keys-fix": "1.1.2",
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
||||||
|
"husky": "8.0.3",
|
||||||
"lint-staged": "14.0.1",
|
"lint-staged": "14.0.1",
|
||||||
"postcss-html": "1.5.0",
|
"postcss-html": "1.5.0",
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.0.3",
|
||||||
|
|
@ -4859,6 +4860,21 @@
|
||||||
"node": ">=16.17.0"
|
"node": ">=16.17.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/husky": {
|
||||||
|
"version": "8.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
|
||||||
|
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"husky": "lib/bin.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/typicode"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/iconv-lite": {
|
"node_modules/iconv-lite": {
|
||||||
"version": "0.4.24",
|
"version": "0.4.24",
|
||||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,8 @@
|
||||||
"lint:fix": "npm run lint -- --fix",
|
"lint:fix": "npm run lint -- --fix",
|
||||||
"lint:style": "stylelint ./**/*.{css,astro,html}",
|
"lint:style": "stylelint ./**/*.{css,astro,html}",
|
||||||
"lint:style:fix": "npm run lint:style -- --fix",
|
"lint:style:fix": "npm run lint:style -- --fix",
|
||||||
"format": "prettier . --write"
|
"format": "prettier . --write",
|
||||||
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/react": "^3.0.3",
|
"@astrojs/react": "^3.0.3",
|
||||||
|
|
@ -37,6 +38,7 @@
|
||||||
"eslint-plugin-react-hooks": "4.6.0",
|
"eslint-plugin-react-hooks": "4.6.0",
|
||||||
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
||||||
"eslint-plugin-sort-keys-fix": "1.1.2",
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
||||||
|
"husky": "8.0.3",
|
||||||
"lint-staged": "14.0.1",
|
"lint-staged": "14.0.1",
|
||||||
"postcss-html": "1.5.0",
|
"postcss-html": "1.5.0",
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.0.3",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue