Skip to content

Commit 28e719b

Browse files
fix(eslint-plugin): add the name of the current package.json to the no-extraneous-dependencies rule
1 parent 27b6e8b commit 28e719b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/eslint-plugin/rules/general/lib/rules/no-extraneous-dependencies.js

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ module.exports = {
4848
);
4949

5050
dependencies = [...dependencyNames, ...devDependencyNames];
51+
52+
if (pkgJson.name) {
53+
dependencies.push(pkgJson.name);
54+
}
5155
}
5256

5357
function check(dependencyName, node) {

0 commit comments

Comments
 (0)