-
Notifications
You must be signed in to change notification settings - Fork 352
/
knip.config.ts
40 lines (38 loc) · 1.08 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
33
34
35
36
37
38
39
40
import type {KnipConfig} from "knip";
/**
* knip is a tool for discovering dead code:
* https://knip.dev/
*
* To use: `yarn knip`
*/
const config: KnipConfig = {
entry: [
"{index,main,cli}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}",
"src/{index,main,cli}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}",
],
project: [
"**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}",
// dev tools
"!utils/**",
// there seems to be a bug with the knip Jest plugin?
"!config/test/**",
],
ignore: [
// symlinked type defs for third-party libs
"**/aphrodite.d.ts",
"**/assets.d.ts",
"**/hubble.d.ts",
"**/jsdiff.d.ts",
"**/raphael.d.ts",
"**/utility.d.ts",
// dev tools
"wallaby.js",
"data/find-questions.ts",
// there seems to be a bug with the knip Jest plugin?
"jest.config.js",
// this file causes side-effects by importing it
// so it's not "used" in the conventional sense
"packages/perseus/src/util/interactive.ts",
],
};
export default config;