feature/pre-commit-checks #5
1
.husky/pre-commit
Executable file
1
.husky/pre-commit
Executable file
@ -0,0 +1 @@
|
||||
npx lint-staged
|
||||
11
package.json
11
package.json
@ -17,9 +17,18 @@
|
||||
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
||||
"format:check": "prettier --check \"**/*.{ts,tsx}\"",
|
||||
"dev:docs": "npm run dev -w apps/docs",
|
||||
"build:docs": "npm run build -w apps/docs"
|
||||
"build:docs": "npm run build -w apps/docs",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"lint-staged": {
|
||||
"apps/backend/src/**/*.ts": ["eslint --max-warnings=0"],
|
||||
"apps/backend/test/**/*.ts": ["eslint --max-warnings=0"],
|
||||
"apps/frontend/src/**/*.{ts,tsx}": ["eslint --max-warnings=0"],
|
||||
"*.{ts,tsx}": ["prettier --check"]
|
||||
},
|
||||
"devDependencies": {
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^16.4.0",
|
||||
"prettier": "^3.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user