Skip to content

Commit

Permalink
refactor: analyze and remove unused files/exports with knip
Browse files Browse the repository at this point in the history
  • Loading branch information
satnaing committed Dec 24, 2024
1 parent ed77023 commit e2ff432
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 138 deletions.
7 changes: 7 additions & 0 deletions knip.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { KnipConfig } from 'knip';

const config: KnipConfig = {
ignore: ['src/components/ui/**', 'src/routeTree.gen.ts']
};

export default config;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "eslint .",
"preview": "vite preview",
"format:check": "prettier --check .",
"format": "prettier --write ."
"format": "prettier --write .",
"knip": "knip"
},
"dependencies": {
"@hookform/resolvers": "^3.9.1",
Expand Down Expand Up @@ -50,7 +51,6 @@
"recharts": "^2.14.1",
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7",
"use-intl": "^3.26.0",
"zod": "^3.23.8",
"zustand": "^5.0.2"
},
Expand All @@ -72,6 +72,7 @@
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.13.0",
"knip": "^5.41.1",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
Expand Down
Loading

0 comments on commit e2ff432

Please sign in to comment.