-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathknip.config.js
More file actions
39 lines (36 loc) · 918 Bytes
/
knip.config.js
File metadata and controls
39 lines (36 loc) · 918 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
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",
/**
* We also ignore peer dependencies because @ui5/project
* defines an optional peer dependency to @ui5/builder
* which is needed and not an issue in our point of view.
*/
optionalPeerDependencies: "off"
},
ignoreDependencies: [
/**
* 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",
/**
* Used as jsdoc template in package.json script, which is not detected
*/
"docdash"
],
};
export default config;