feat(eslint-config): add order rule in import

* refactor: added eslint-plugin-import

* refactor: disable some rules for muiComponents

* fix: fixed import
This commit is contained in:
Priscila Oliveira
2019-10-07 22:19:18 +02:00
committed by Sergio Hg
parent 950f6defca
commit ae73772a37
84 changed files with 152 additions and 97 deletions

View File

@@ -5,7 +5,8 @@
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:verdaccio/recommended",
"plugin:jsx-a11y/recommended"
"plugin:jsx-a11y/recommended",
"plugin:import/typescript"
],
"plugins": [
"react",
@@ -14,7 +15,8 @@
"verdaccio",
"jsx-a11y",
"codeceptjs",
"react-hooks"
"react-hooks",
"import"
],
"settings": {
"react": {
@@ -28,6 +30,7 @@
}
},
"rules": {
"import/order": ["error", {"newlines-between": "always"}],
"babel/no-invalid-this": 0,
"no-invalid-this": 0,
"no-console": ["error", { "allow": ["warn", "error"] }],