Skip to content

Commit

Permalink
chore(eslint): resolve style conflicts with prettier
Browse files Browse the repository at this point in the history
remove @typescript-eslint/indent and move all prettier's plugins and the end of the "extends" array
to avoid conflicts with other rules
  • Loading branch information
aneurysmjs committed Jan 28, 2020
1 parent 67aee80 commit 9098551
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
// Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
"plugin:import/typescript",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": [
"import",
Expand All @@ -39,7 +39,6 @@
"sourceType": "module" // Allows for the use of imports
},
"rules": {
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/explicit-function-return-type": ["error", {
// "allowExpressions": true,
"allowTypedFunctionExpressions": true
Expand Down

0 comments on commit 9098551

Please sign in to comment.