chore: add configuration files for linting, formatting, and husky pre-commit hooks
This commit is contained in:
+27
-4
@@ -6,7 +6,12 @@
|
||||
"build": "react-router build",
|
||||
"dev": "react-router dev",
|
||||
"start": "react-router-serve ./build/server/index.js",
|
||||
"typecheck": "react-router typegen && tsc"
|
||||
"typecheck": "react-router typegen && tsc",
|
||||
"knip": "knip",
|
||||
"format": "prettier --write .",
|
||||
"lint": "eslint .",
|
||||
"prepare": "husky",
|
||||
"validate": "pnpm lint && pnpm typecheck && pnpm knip"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-router/node": "^7.1.3",
|
||||
@@ -17,15 +22,33 @@
|
||||
"react-router": "^7.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.6.1",
|
||||
"@commitlint/config-conventional": "^19.6.0",
|
||||
"@commitlint/format": "^19.5.0",
|
||||
"@commitlint/is-ignored": "^19.6.0",
|
||||
"@eslint/js": "^9.19.0",
|
||||
"@react-router/dev": "^7.1.3",
|
||||
"@tailwindcss/vite": "^4.0.0",
|
||||
"@types/node": "^20",
|
||||
"@types/node": "^20.17.16",
|
||||
"@types/react": "^19.0.1",
|
||||
"@types/react-dom": "^19.0.1",
|
||||
"@typescript-eslint/parser": "^8.22.0",
|
||||
"eslint": "^8.0.1",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react-hooks": "^5.1.0",
|
||||
"eslint-plugin-unicorn": "^56.0.1",
|
||||
"globals": "^15.14.0",
|
||||
"husky": "^9.1.7",
|
||||
"knip": "^5.43.6",
|
||||
"lint-staged": "^15.4.3",
|
||||
"prettier": "^3.4.2",
|
||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||
"react-router-devtools": "^1.1.0",
|
||||
"tailwindcss": "^4.0.0",
|
||||
"typescript": "^5.7.2",
|
||||
"typescript": "^5.7.3",
|
||||
"typescript-eslint": "^8.22.0",
|
||||
"vite": "^5.4.11",
|
||||
"vite-tsconfig-paths": "^5.1.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user