forked from eslint/eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knip.jsonc
42 lines (42 loc) · 1.67 KB
/
knip.jsonc
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
{
"workspaces": {
".": {
// These entries are complementary to the ones found in package.json
"entry": ["lib/rules/index.js", "tools/internal-rules/*.js"],
"project": ["{conf,lib,tools}/**/*.js"],
"mocha": {
"entry": [
"tests/{bin,conf,lib,tools}/**/*.js", // see Makefile.js
"tests/_utils/test-lazy-loading-rules.js"
],
"project": ["tests/**/*.js"]
},
"ignore": [
// If Knip would consider exports as named, their usage is too dynamic: globals[`es${ecmaVersion}`]
// An alternative is to add `__esModule: true` to the export and we can remove it here from the ignores:
"conf/globals.js",
// These contain unresolved imports and other oddities:
"tests/bench/large.js",
"tests/lib/rule-tester/rule-tester.js",
"tests/performance/jshint.js",
// Many are required using dynamic paths such as `fs.readFileSync(path.join())`:
"tests/fixtures/**"
],
"ignoreDependencies": [
"c8",
"@wdio/cli",
"rollup-plugin-node-polyfills",
// Optional peer dependency used for loading TypeScript configuration files
"jiti"
]
},
"docs": {
"ignore": ["src/assets/js/search.js", "_examples/**"]
},
// Workspaces with default configs:
"packages/*": {
"ignore": ["tests/types/**"]
},
"tools/internal-rules": {}
}
}