Skip to content

Commit

Permalink
feat: add 'import/no-extraneous-dependencies' rule
Browse files Browse the repository at this point in the history
  • Loading branch information
axtk committed Sep 3, 2023
1 parent e0fe4df commit 94b943f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ module.exports = {
warnOnUnassignedImports: true,
},
],
'import/no-extraneous-dependencies': ERROR,
},
overrides: [
{
Expand Down Expand Up @@ -226,6 +227,13 @@ module.exports = {
},
},
],

'import/no-extraneous-dependencies': [
ERROR,
{
includeTypes: true,
},
],
},
},
],
Expand Down
7 changes: 7 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module.exports = {
warnOnUnassignedImports: true,
},
],
'import/no-extraneous-dependencies': ERROR,
},
settings: {
react: {
Expand All @@ -82,6 +83,12 @@ module.exports = {
],
},
],
'import/no-extraneous-dependencies': [
ERROR,
{
includeTypes: true,
},
],
},
},
],
Expand Down

0 comments on commit 94b943f

Please sign in to comment.