Open
Description
The thought here is that this rule would lint package.json
itself and warn on any deps or dev deps that are not explicitly imported somewhere in the linted JS files.
This would be independently configurable for deps as well as dev deps, with the following example schemas:
[2, {
"dependencies": false,
"devDependencies": true
}]
[2, {
"dependencies": {
"enable": false
},
"devDependencies": {
"ignore": ["something-side-effecty", "a command-line tool"]
}
}]
Ideally, it would also not warn on unused dev deps that had a "bin" name that was explicitly referenced in any of the "scripts".