Skip to content

Commit 13e8fca

Browse files
committed
chore: update package.json and add pre-commit hook for linting
1 parent e60bd18 commit 13e8fca

2 files changed

Lines changed: 27 additions & 31 deletions

File tree

‎.husky/pre-commit‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec lint-staged

‎package.json‎

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,37 @@
1010
"build": "nx build react-kit",
1111
"build:demo": "nx build react-kit-demo",
1212
"test": "nx test react-kit ",
13-
"update": "nx migrate latest"
13+
"update": "nx migrate latest",
14+
"lint": "nx run-many -t lint",
15+
"format": "nx format:write",
16+
"prepare": "husky"
17+
},
18+
"lint-staged": {
19+
"*": "nx format:write --files"
1420
},
1521
"dependencies": {
1622
"@emotion/react": "11.14.0",
1723
"@emotion/styled": "11.14.1",
1824
"@js-temporal/polyfill": "^0.5.1",
19-
"@mui/icons-material": "^7.3.7",
20-
"@mui/material": "^7.3.4",
21-
"@mui/x-data-grid": "^8.27.0",
22-
"@tanstack/react-router": "^1.161.1",
23-
"date-fns": "^4.1.0",
24-
"react": "^19.2.4",
25-
"react-dom": "^19.2.4"
25+
"@mui/icons-material": "^7.3.11",
26+
"@mui/material": "^7.3.11",
27+
"@mui/x-data-grid": "^8.29.3",
28+
"@tanstack/react-router": "^1.170.32",
29+
"react": "^19.2.8",
30+
"react-dom": "^19.2.8"
2631
},
2732
"devDependencies": {
28-
"@babel/core": "^7.28.0",
29-
"@babel/preset-react": "^7.27.1",
30-
"@eslint/eslintrc": "^2.1.1",
31-
"@eslint/js": "^9.39.2",
33+
"@babel/core": "^7.29.7",
34+
"@babel/preset-react": "^7.29.7",
3235
"@nx/devkit": "23.2.0",
33-
"@nx/eslint": "23.2.0",
34-
"@nx/eslint-plugin": "23.2.0",
3536
"@nx/js": "23.2.0",
37+
"@nx/oxlint": "23.2.0",
3638
"@nx/react": "23.2.0",
3739
"@nx/vite": "23.2.0",
3840
"@nx/vitest": "23.2.0",
3941
"@nx/workspace": "23.2.0",
4042
"@semantic-release/git": "^10.0.1",
41-
"@semantic-release/npm": "^13.1.3",
43+
"@semantic-release/npm": "^13.1.5",
4244
"@swc-node/register": "1.11.1",
4345
"@swc/cli": "0.8.1",
4446
"@swc/core": "1.15.8",
@@ -48,29 +50,23 @@
4850
"@types/node": "22.15.14",
4951
"@types/react": "19.1.3",
5052
"@types/react-dom": "19.1.3",
51-
"@typescript-eslint/eslint-plugin": "8.69.0",
5253
"@vitejs/plugin-react": "6.0.2",
5354
"@vitest/coverage-v8": "4.0.9",
5455
"@vitest/ui": "4.0.9",
55-
"eslint": "~9.26.0",
56-
"eslint-config-prettier": "10.1.2",
57-
"eslint-plugin-import": "2.31.0",
58-
"eslint-plugin-jsx-a11y": "6.10.2",
59-
"eslint-plugin-react": "7.37.5",
60-
"eslint-plugin-react-hooks": "5.2.0",
56+
"husky": "^9.1.7",
6157
"jest-mock": "^29.7.0",
6258
"jiti": "2.4.2",
6359
"jsdom": "~26.1.0",
60+
"lint-staged": "^17.4.1",
6461
"nx": "23.2.0",
65-
"nx-oxlint": "^0.0.3",
66-
"prettier": "^3.5.3",
67-
"sass": "^1.87.0",
68-
"semantic-release": "^25.0.3",
62+
"oxfmt": "^0.66.0",
63+
"oxlint": "^1.81.0",
64+
"sass": "^1.103.1",
65+
"semantic-release": "^25.0.9",
6966
"typescript": "6.0.3",
70-
"typescript-eslint": "8.69.0",
7167
"vite": "8.0.16",
7268
"vite-plugin-dts": "^4.5.4",
73-
"vite-plugin-mkcert": "^1.17.9",
69+
"vite-plugin-mkcert": "^1.17.12",
7470
"vitest": "4.0.9"
7571
},
7672
"peerDependencies": {
@@ -79,10 +75,9 @@
7975
"@mui/icons-material": "^7.1.0",
8076
"@mui/material": "^7.1.0",
8177
"@mui/x-data-grid": "^8.2.0",
82-
"date-fns": "^4.1.0",
78+
"@tanstack/react-router": "^1.161.1",
8379
"react": "^18.3.1 || ^19.0.0",
84-
"react-dom": "^18.3.1 || ^19.0.0",
85-
"@tanstack/react-router": "^1.161.1"
80+
"react-dom": "^18.3.1 || ^19.0.0"
8681
},
8782
"release": {
8883
"branches": [

0 commit comments

Comments
 (0)