installed husky

This commit is contained in:
Gyen Abubakar Sadick 2023-07-16 07:27:56 +00:00
parent c68e5c5e49
commit b5356fbeb4
3 changed files with 34 additions and 4 deletions

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run prettier && npm run eslint && git add .

24
package-lock.json generated
View file

@ -21,6 +21,7 @@
"@types/react-dom": "^18.0.6",
"eslint": "^8.26.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.0",
"prettier": "^2.7.1",
"ts-standard": "^12.0.1",
"typescript": "^4.8.2",
@ -28,7 +29,7 @@
"webpack-cli": "^4.10.0"
}
},
"../../../../../packages/typescript/packet": {
"../../packages/typescript/packet": {
"extraneous": true
},
"node_modules/@discoveryjs/json-ext": {
@ -2200,6 +2201,21 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"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/ignore": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz",
@ -5857,6 +5873,12 @@
"has-symbols": "^1.0.2"
}
},
"husky": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
"dev": true
},
"ignore": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz",

View file

@ -1,9 +1,12 @@
{
"name": "al-quran.reflectslight.io",
"workspaces": ["./packages/typescript/*"],
"workspaces": [
"./packages/typescript/*"
],
"scripts": {
"eslint": "npm exec eslint -- --fix src/js/",
"prettier": "npm exec prettier -- --write src/js/"
"prettier": "npm exec prettier -- --write src/js/",
"prepare": "husky install"
},
"dependencies": {
"react": "^18.2.0",
@ -22,6 +25,7 @@
"ts-standard": "^12.0.1",
"typescript": "^4.8.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
"webpack-cli": "^4.10.0",
"husky": "^8.0.0"
}
}