chore: add husky pre-commit hook and lint-staged configuration
- Created a pre-commit hook in .husky to run lint-staged. - Added .lintstagedrc.mjs to format frontend files with Prettier and apply Spotless to backend Java files. - Introduced .prettierignore to exclude specific directories from formatting.
This commit is contained in:
1 parent
5d2d85aa8c
commit
878da155bd
564 files changed
+61467
-47179
No files matched your search
@@ -10,7 +10,8 @@
|
||||
"typecheck": "tsc -p tsconfig.app.json --noEmit && tsc -p tsconfig.e2e.json --noEmit",
|
||||
"e2e": "playwright test",
|
||||
"e2e:ui": "playwright test --ui",
|
||||
"lint": "ng lint"
|
||||
"lint": "ng lint",
|
||||
"prepare": "cd .. && frontend/node_modules/.bin/husky"
|
||||
},
|
||||
"private": true,
|
||||
"packageManager": "bun@1.3.14",
|
||||
@@ -35,13 +36,15 @@
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@playwright/test": "^1.61.1",
|
||||
"@types/node": "^24.0.0",
|
||||
"@vitest/coverage-v8": "^4.1.10",
|
||||
"angular-eslint": "22.1.0",
|
||||
"eslint": "^10.6.0",
|
||||
"@vitest/coverage-v8": "^4.1.10",
|
||||
"husky": "^9.1.7",
|
||||
"jsdom": "^28.0.0",
|
||||
"lint-staged": "^17.2.0",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "~6.0.2",
|
||||
"typescript-eslint": "8.62.1",
|
||||
"vitest": "^4.0.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user