forked from eslint/eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knip.jsonc
49 lines (47 loc) · 1.87 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
43
44
45
46
47
48
49
{
"workspaces": {
".": {
// These entries are complementary to the ones found in package.json
"entry": [
"lib/rules/index.js",
"tools/internal-rules/index.js",
// https://github.com/webpro/knip/issues/464
// Remove when Knip has a wdio plugin
"wdio.conf.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",
// Ignore until Knip has a wdio plugin:
"@wdio/*",
"rollup-plugin-node-polyfills",
// FIXME: not sure why is eslint-config-eslint reported as unused
"eslint-config-eslint"
]
},
"docs": {
"ignore": ["src/assets/js/search.js", "_examples/**"]
},
// Workspaces with default configs:
"packages/*": {},
"tools/internal-rules": {}
}
}