config husky
This commit is contained in:
parent
edb2544e60
commit
2544ce8031
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-unused-vars": "warn",
|
||||
"@typescript-eslint/no-explicit-any": "off"
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
}
|
||||
}
|
|
@ -132,3 +132,6 @@ dist
|
|||
|
||||
**/jwtRS256.key
|
||||
**/jwtRS256.key.pub
|
||||
|
||||
**/yarn.lock
|
||||
.husky
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
19
package.json
19
package.json
|
@ -7,16 +7,27 @@
|
|||
"license": "MIT",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
||||
"@typescript-eslint/parser": "^5.54.1",
|
||||
"eslint": "^8.35.0",
|
||||
"eslint-config-prettier": "^8.7.0",
|
||||
"husky": "^8.0.2",
|
||||
"lerna": "^6.1.0",
|
||||
"lint-staged": "^13.0.4",
|
||||
"turbo": "^1.6.3"
|
||||
"lint-staged": "^13.0.4"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "husky install"
|
||||
"configure-husky": "npx husky install && npx husky add .husky/pre-commit \"npx --no-install lint-staged\""
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*": "prettier --write --ignore-unknown"
|
||||
"**/*.{js,json,ts,css}": [
|
||||
"eslint --fix",
|
||||
"prettier --write \"**/*.{ts,tsx,js,jsx,json,css,scss,md}\""
|
||||
]
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
|
|
Loading…
Reference in New Issue