Skip to content

Commit

Permalink
Packages: Fix all missing or obsolete dependencies in packages (#16969)
Browse files Browse the repository at this point in the history
* Packages: Fix all missing or obsolete dependencies in packages

* Enable import/no-extraneous-dependencies rule and fix reported violations

* Remove 2 dependencies not used in the project on the global level

* Remove unused @wordpress/core-data dependnecy from @wordpress/block-editor
  • Loading branch information
gziolo committed Aug 29, 2019
1 parent 40c466e commit a518717
Show file tree
Hide file tree
Showing 19 changed files with 280 additions and 42 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ module.exports = {
'plugin:@wordpress/eslint-plugin/recommended',
'plugin:jest/recommended',
],
plugins: [
'import',
],
rules: {
'@wordpress/react-no-unsafe-timeout': 'error',
'no-restricted-syntax': [
Expand Down Expand Up @@ -106,6 +109,16 @@ module.exports = {
} ],
},
overrides: [
{
files: [ 'packages/**/*.js' ],
rules: {
'import/no-extraneous-dependencies': 'error',
},
excludedFiles: [
'**/*.@(android|ios|native).js',
'**/@(benchmark|test|__tests__)/**/*.js',
],
},
{
files: [ 'packages/e2e-test*/**/*.js' ],
env: {
Expand Down
Loading

0 comments on commit a518717

Please sign in to comment.