Add husky
This commit is contained in:
parent
70416a608d
commit
16a44c9c46
3 changed files with 30 additions and 11 deletions
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
pnpm -r test
|
27
package.json
27
package.json
|
@ -2,27 +2,32 @@
|
|||
"name": "runtipi",
|
||||
"version": "0.0.1",
|
||||
"description": "A homeserver for everyone",
|
||||
"scripts": {
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint": "^8.15.0",
|
||||
"eslint-config-next": "^12.1.4",
|
||||
"eslint-import-resolver-node": "^0.3.4",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-config-airbnb-typescript": "^17.0.0",
|
||||
"eslint-module-utils": "^2.7.3",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-react": "^7.29.1",
|
||||
"eslint-config-next": "^12.1.4",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-scope": "^7.1.1",
|
||||
"eslint-import-resolver-node": "^0.3.4",
|
||||
"eslint-import-resolver-typescript": "^2.4.0",
|
||||
"eslint-module-utils": "^2.7.3",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-react": "^7.29.1",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
"eslint-scope": "^7.1.1",
|
||||
"eslint-utils": "^3.0.0",
|
||||
"eslint-visitor-keys": "^3.3.0",
|
||||
"prettier": "^2.6.2",
|
||||
"prettier-linter-helpers": "^1.0.0",
|
||||
"eslint-import-resolver-typescript": "^2.4.0"
|
||||
"prettier-linter-helpers": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"husky": "^8.0.1"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/meienberger/runtipi.git"
|
||||
|
|
|
@ -20,6 +20,7 @@ importers:
|
|||
eslint-scope: ^7.1.1
|
||||
eslint-utils: ^3.0.0
|
||||
eslint-visitor-keys: ^3.3.0
|
||||
husky: ^8.0.1
|
||||
prettier: ^2.6.2
|
||||
prettier-linter-helpers: ^1.0.0
|
||||
dependencies:
|
||||
|
@ -41,6 +42,8 @@ importers:
|
|||
eslint-visitor-keys: 3.3.0
|
||||
prettier: 2.6.2
|
||||
prettier-linter-helpers: 1.0.0
|
||||
devDependencies:
|
||||
husky: 8.0.1
|
||||
|
||||
packages/dashboard:
|
||||
specifiers:
|
||||
|
@ -148,6 +151,7 @@ importers:
|
|||
eslint-plugin-prettier: ^4.0.0
|
||||
express: ^4.17.3
|
||||
helmet: ^5.0.2
|
||||
husky: ^8.0.1
|
||||
internal-ip: ^6.0.0
|
||||
jest: ^28.1.0
|
||||
jsonwebtoken: ^8.5.1
|
||||
|
@ -173,6 +177,7 @@ importers:
|
|||
dotenv: 16.0.0
|
||||
express: 4.18.1
|
||||
helmet: 5.0.2
|
||||
husky: 8.0.1
|
||||
internal-ip: 6.2.0
|
||||
jsonwebtoken: 8.5.1
|
||||
mock-fs: 5.1.2
|
||||
|
@ -5008,6 +5013,11 @@ packages:
|
|||
resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
|
||||
engines: {node: '>=10.17.0'}
|
||||
|
||||
/husky/8.0.1:
|
||||
resolution: {integrity: sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==}
|
||||
engines: {node: '>=14'}
|
||||
hasBin: true
|
||||
|
||||
/iconv-lite/0.4.24:
|
||||
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
|
Loading…
Reference in a new issue