Skip to content

Commit 2ac0a0a

Browse files
authored
refactor: analyze and remove unused files/exports with knip (#67)
1 parent 3580ea6 commit 2ac0a0a

File tree

7 files changed

+239
-138
lines changed

7 files changed

+239
-138
lines changed

knip.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { KnipConfig } from 'knip';
2+
3+
const config: KnipConfig = {
4+
ignore: ['src/components/ui/**', 'src/routeTree.gen.ts']
5+
};
6+
7+
export default config;

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"lint": "eslint .",
1010
"preview": "vite preview",
1111
"format:check": "prettier --check .",
12-
"format": "prettier --write ."
12+
"format": "prettier --write .",
13+
"knip": "knip"
1314
},
1415
"dependencies": {
1516
"@hookform/resolvers": "^3.9.1",
@@ -50,7 +51,6 @@
5051
"recharts": "^2.14.1",
5152
"tailwind-merge": "^2.5.5",
5253
"tailwindcss-animate": "^1.0.7",
53-
"use-intl": "^3.26.0",
5454
"zod": "^3.23.8",
5555
"zustand": "^5.0.2"
5656
},
@@ -72,6 +72,7 @@
7272
"eslint-plugin-react-hooks": "^5.1.0",
7373
"eslint-plugin-react-refresh": "^0.4.16",
7474
"globals": "^15.13.0",
75+
"knip": "^5.41.1",
7576
"postcss": "^8.4.49",
7677
"prettier": "^3.4.2",
7778
"prettier-plugin-tailwindcss": "^0.6.9",

0 commit comments

Comments
 (0)