Skip to content

Commit

Permalink
Add gutenberg/package.json to also get checked for imported packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhun committed Jan 5, 2021
1 parent 6990c57 commit 3cc6740
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ module.exports = {
'moduleDirectory': ['node_modules', 'gutenberg', 'gutenberg/node_modules']
}
},
},
rules: {
// do not throw an error if imported dependencies are
// declared in `package.json` or `gutenberg/package.json`
"import/no-extraneous-dependencies": ["error", {"packageDir": ['.', './gutenberg/']}]
}
};

0 comments on commit 3cc6740

Please sign in to comment.