-
Notifications
You must be signed in to change notification settings - Fork 549
Expand file tree
/
Copy pathknip.config.ts
More file actions
42 lines (40 loc) · 1.05 KB
/
knip.config.ts
File metadata and controls
42 lines (40 loc) · 1.05 KB
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
41
42
import { KnipConfig } from "knip";
import mdx from "knip/dist/compilers/mdx";
const config: KnipConfig = {
compilers: {
mdx: mdx.compiler,
},
entry: [
"src/main.{js,ts}",
"src/app/*/*Root.{js,jsx,ts,tsx}",
"src/app/*/preload.{js,ts}",
"src/bin/*.{js,ts}",
"src/lib/forge/hooks/*.{js,ts}",
"src/lib/events/**/*{js,ts}",
"test/**/*{js,jsx,ts,tsx}",
"webpack*.{js,ts}",
"forge.config.js",
"src/stories/**/*{js,ts,mdx}",
],
project: ["src/**/*.{js,ts,jsx,tsx}"],
ignore: [
"src/components/ui/hooks/use-trace-update.ts",
"src/components/ui/icons/Icons.tsx",
],
ignoreDependencies: [
"@vercel/webpack-asset-relocator-loader",
".*-loader",
"@electron-forge/maker-.*",
"@electron-forge/plugin-.*",
"@types/webpack-env",
"babel-eslint",
"eslint-plugin-react",
"jest-environment-jsdom",
"eslint-plugin-jsx-a11y",
"eslint-plugin-import",
"webpack",
],
ignoreBinaries: ["webpack", "time", "flamebearer"],
ignoreUnresolved: ["../helpers/l10n"],
};
export default config;