-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathknip.config.js
More file actions
67 lines (67 loc) · 1.6 KB
/
knip.config.js
File metadata and controls
67 lines (67 loc) · 1.6 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
entry: [
'src/entries/background/index.ts',
'src/entries/popup/index.tsx',
'src/entries/content/*.ts',
'src/entries/inpage/*.ts',
'src/entries/iframe/*.tsx',
'scripts/**/*.{js,ts}',
'e2e/**/*.test.ts',
],
project: [
'src/**/*.{ts,tsx,js,jsx}',
'!src/**/*.test.{ts,tsx}',
'!src/**/*.docs.tsx',
'!src/design-system/docs/**/*',
],
ignore: [
'dist/**',
'build/**',
'src/design-system/docs/**/*',
'src/design-system/components/**/*.examples.tsx',
'src/design-system/components/**/*.css.ts',
'src/design-system/styles/**/*.css.ts',
'src/design-system/styles/designTokens.ts',
'src/core/graphql/types/**/*',
'src/core/graphql/__generated__/**/*',
'src/core/resources/_template/*.ts',
'src/**/index.{ts,tsx}',
'**/*.config.{js,ts}',
'webpack.*.js',
'lavamoat/**',
],
ignoreDependencies: [
'buffer',
'@graphql-eslint/eslint-plugin',
'@lavamoat/preinstall-always-fail',
'chromedriver',
'geckodriver',
'@vanilla-extract/webpack-plugin',
'@types/chrome',
'dotenv-webpack',
'eslint-plugin-import',
'eslint-plugin-jest',
'copy-webpack-plugin',
'webpack-bundle-analyzer',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'@peculiar/webcrypto',
'@foundry-rs/hardhat-anvil',
],
ignoreBinaries: [
'anvil',
'awk',
'lsof',
'sed',
'tail',
'zip',
'codegen',
'export',
],
webpack: {
config: ['webpack.config.dev.js', 'webpack.config.prod.js'],
},
typescript: {
config: ['tsconfig.json'],
},
};