-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Expand file tree
/
Copy pathknip.jsonc
More file actions
48 lines (48 loc) · 1.71 KB
/
Copy pathknip.jsonc
File metadata and controls
48 lines (48 loc) · 1.71 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
{
"$schema": "https://unpkg.com/knip@6/schema-jsonc.json",
"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",
// Run from GitHub Actions (ecosystem-tests.yml)
"tools/test-ecosystem/build-failure-summary.js",
"tools/test-ecosystem/sync-ecosystem-issue.js",
],
"ignoreDependencies": [
// Underlying code coverage engine used in unit tests
"c8",
],
},
"docs": {
"entry": ["src/assets/scss/{styles,print}.scss"],
"ignore": ["src/assets/js/search.js", "_examples/**"],
},
"packages/eslint-config-eslint": {
"entry": ["tests/types/**/*.mts"],
},
"packages/js": {
"entry": ["tests/types/**/*.mts"],
"ignoreDependencies": ["eslint"],
},
},
}