Enabled canned import rules as well as import order rule (fixable via --fix). (#8880)

This commit is contained in:
Nick Taylor 2020-06-25 04:30:40 -04:00 committed by GitHub
parent 967f00793a
commit ab4753079c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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': [