chore: add husky and lint-staged for pre-commit linting
All checks were successful
Push to github container register / push-docker (push) Successful in 10m18s
All checks were successful
Push to github container register / push-docker (push) Successful in 10m18s
- Updated package.json to include husky and lint-staged configurations. - Added a pre-commit hook to run lint-staged using bunx.
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "eslint"
|
||||
"lint": "eslint",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx,mjs,cjs,json,jsonc,css,md,mdx}": "biome check --write --files-ignore-unknown=true"
|
||||
},
|
||||
"dependencies": {
|
||||
"@base-ui/react": "^1.3.0",
|
||||
@@ -23,12 +27,15 @@
|
||||
"tw-animate-css": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^2.4.10",
|
||||
"@tailwindcss/postcss": "^4",
|
||||
"@types/node": "^20",
|
||||
"@types/react": "^19",
|
||||
"@types/react-dom": "^19",
|
||||
"eslint": "^9",
|
||||
"eslint-config-next": "16.2.1",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^16.4.0",
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user