-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"workspaces": { | ||
".": { | ||
// These entries are complementary to the ones found in package.json | ||
"entry": [ | ||
"lib/rules/index.js", | ||
"tools/internal-rules/index.js", | ||
"tools/update-rule-types.js", | ||
"wdio.conf.js" // Remove when Knip has a wdio plugin | ||
], | ||
"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" | ||
] | ||
}, | ||
"docs": { | ||
"entry": ["src/{_data,_plugins}/*.js"], | ||
"project": ["src/{_data,_plugins}/**/*.js"], | ||
"ignoreDependencies": ["algoliasearch"] | ||
}, | ||
// Workspaces with default configs: | ||
"packages/*": {}, | ||
"tools/internal-rules": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters