-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathknip.config.js
More file actions
42 lines (37 loc) · 992 Bytes
/
knip.config.js
File metadata and controls
42 lines (37 loc) · 992 Bytes
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
const config = {
/**
* We only need dependency checking at the moment,
* so all checks except for dependencies are turned off.
*/
rules: {
files: "off",
duplicates: "off",
classMembers: "off",
unlisted: "off",
binaries: "off",
unresolved: "off",
catalog: "off",
exports: "off",
types: "off",
enumMembers: "off",
},
ignoreDependencies: [
/**
* The package.json files of all @ui5/* packages are dynamically required for the "version" command
* (See lib/cli/commands/versions.js)
* Only @ui5/fs is not used anywhere else in the CLI package, so we need to ignore it here
*/
"@ui5/fs",
/**
* Used as jsdoc template in package.json script, which is not detected
*/
"docdash",
/**
* Used via nyc ava --node-arguments="--experimental-loader=@istanbuljs/esm-loader-hook"
* which is not detected by knip as a usage of this package
*/
"@istanbuljs/esm-loader-hook"
],
entry: ["lib/cli/commands/*.js"]
};
export default config;