-
Notifications
You must be signed in to change notification settings - Fork 118
/
knip.config.ts
32 lines (30 loc) · 1.09 KB
/
knip.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { KnipConfig } from 'knip'
const config: KnipConfig = {
project: ['src/**/*.{js,jsx,ts,tsx,mjs,mts}'],
include: ['files', 'duplicates'],
exclude: ['types', 'exports', 'unlisted'],
next: {
entry: ['next.config.{js,ts,cjs,mjs}', 'src/pages/**/*.{js,jsx,ts,tsx}'],
},
playwright: {
config: ['playwright.config.{js,ts}'],
entry: ['e2e/**/*.@(spec|test).?(c|m)[jt]s?(x)'],
},
vitest: {
config: ['vitest.config.{js,mjs,ts,cjs,mts,cts}'],
entry: ['src/**/*.test.{js,ts,jsx,tsx}'],
},
ignore: [
// Duplicate exports. Removal is currently blocked due to potential E2E test failures.
'src/transaction-flow/input/EditResolver/EditResolver-flow.tsx',
'src/utils/metamask/firefox.ts',
// We still need the `test-d` files
'src/hooks/ensjs/public/useRecords.test-d.ts',
'src/utils/query/match/matchExactOrNullParamItem.test-d.ts',
'src/utils/query/match/matchQueryKeyMeta.test-d.ts',
'src/utils/query/match/queryKeyToInternalParams.test-d.ts',
// Will need later
'src/components/pages/migrate/Carousel.tsx',
],
}
export default config