-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathknip.config.js
More file actions
49 lines (45 loc) · 1.03 KB
/
knip.config.js
File metadata and controls
49 lines (45 loc) · 1.03 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
49
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: [
/**
* Used in packages/middleware-code-coverage/test/integration/fixtures/ui5-app/package.json
* which is not part of the scope that knip analyzes
*/
"@ui5/cli",
/**
* 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"
],
workspaces: {
"packages/middleware-code-coverage": {
/**
* UI5 custom middleware entry (see packages/middleware-code-coverage/ui5.yaml)
*/
entry: ["lib/middleware.js"],
ava: {
config: [
"ava.config.js",
"ava-integration.config.js"
]
}
}
}
};
export default config;