Skip to content

Commit

Permalink
ESLint Plugin: Enable import rules used in Gutenberg (#27387)
Browse files Browse the repository at this point in the history
* ESLint Plugin: Add two import rules to `recommended`

* Fix new issues raised by ESLint

* OAllow dev dependencies for all development files

* Allow dev dependencies to simplify checks

* Fix differences in the package lock file

* Update the changelog for scripts package
  • Loading branch information
gziolo authored Jan 3, 2021
1 parent 4f967d1 commit 3ce404e
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 108 deletions.
11 changes: 3 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module.exports = {
'plugin:@wordpress/eslint-plugin/recommended',
'plugin:eslint-comments/recommended',
],
plugins: [ 'import' ],
globals: {
wp: 'off',
},
Expand Down Expand Up @@ -124,14 +123,10 @@ module.exports = {
},
overrides: [
{
files: [ 'packages/**/*.js' ],
excludedFiles: [
'**/*.@(android|ios|native).js',
...developmentFiles,
],
files: [ '**/*.@(android|ios|native).js', ...developmentFiles ],
rules: {
'import/no-extraneous-dependencies': 'error',
'import/no-unresolved': 'error',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
},
},
{
Expand Down
Loading

0 comments on commit 3ce404e

Please sign in to comment.