Skip to content

Commit

Permalink
fix(eslint-import): switch to recommended import settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed May 4, 2020
1 parent 7c5dfb5 commit cb892d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 0 additions & 7 deletions config/js/eslint-react.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,5 @@ module.exports = {
},
],
'react/no-unused-prop-types': 'error',
'import/no-unused-modules': [
'error',
{
unusedExports: true,
missingExports: false,
},
],
},
}
9 changes: 7 additions & 2 deletions config/js/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
const SEVERITY = 2

module.exports = {
extends: ['eslint:recommended', 'prettier'],
extends: [
'eslint:recommended',
'prettier',
'plugin:import/errors',
'plugin:import/warnings',
],

plugins: ['prettier', 'import'],
plugins: ['prettier'],

env: {
browser: true,
Expand Down

0 comments on commit cb892d2

Please sign in to comment.