Enabled canned import rules as well as import order rule (fixable via --fix). (#8880)
This commit is contained in:
parent
967f00793a
commit
ab4753079c
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ module.exports = {
|
|||
parser: 'babel-eslint',
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:import/errors',
|
||||
'plugin:import/warnings',
|
||||
'preact',
|
||||
'plugin:jsx-a11y/recommended',
|
||||
'prettier',
|
||||
|
|
@ -38,6 +40,7 @@ module.exports = {
|
|||
},
|
||||
plugins: ['import', 'react', 'jsx-a11y'],
|
||||
rules: {
|
||||
'import/order': ['error'],
|
||||
'import/prefer-default-export': 'off',
|
||||
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||||
'jsx-a11y/label-has-associated-control': [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue