Skip to content

Commit 41f7226

Browse files
Merge pull request #1253 from bryceosterhaus/master
fix(eslint-plugin): add the name of the current package.json to the no-extraneous-dependencies rule
2 parents 27b6e8b + 28e719b commit 41f7226

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)