forked from eslint/eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.jsonc
More file actions
44 lines (44 loc) · 1.49 KB
/
knip.jsonc
File metadata and controls
44 lines (44 loc) · 1.49 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
{
"workspaces": {
".": {
// These entries are complementary to the ones found in package.json
"entry": ["lib/rules/index.js", "tools/internal-rules/*.js"],
"project": ["{bin,conf,lib,tools}/**/*.js"],
"mocha": {
"entry": [
"tests/{bin,conf,lib,messages,tools}/**/*.js", // see Makefile.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/performance/jshint.js",
// Many are required using dynamic paths such as `fs.readFileSync(path.join())`:
"tests/fixtures/**",
// pnpm test package
"tests/pnpm/**",
// Run from Makefile.js
"tools/generate-formatter-examples.js",
],
"ignoreDependencies": [
"c8",
// Optional peer dependency used for loading TypeScript configuration files
"jiti",
"prettier",
],
},
"docs": {
"entry": ["src/assets/scss/{styles,print}.scss"],
"ignore": ["src/assets/js/search.js", "_examples/**"],
},
// Workspaces with default configs:
"packages/*": {
"ignore": ["tests/types/**"],
"ignoreDependencies": ["eslint"],
},
},
}