Skip to content

Commit

Permalink
fix: put prettier configs after others
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Aug 23, 2020
1 parent 2e4b8a7 commit cc6d937
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
"sourceType": "module"
},
"plugins": ["only-warn"],
"extends": ["prettier", "eslint:recommended"],
"extends": ["eslint:recommended", "prettier"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
Expand All @@ -31,12 +31,12 @@ module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "only-warn"],
"extends": [
"prettier",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
Expand Down
9 changes: 5 additions & 4 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
"sourceType": "module"
},
"plugins": ["react", "only-warn"],
"extends": ["prettier", "eslint:recommended", "plugin:react/recommended"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier", "prettier/react"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
Expand All @@ -31,12 +31,13 @@ module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": ["react", "@typescript-eslint", "only-warn"],
"extends": [
"prettier",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
Expand Down
9 changes: 5 additions & 4 deletions strict-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
"sourceType": "module"
},
"plugins": ["react"],
"extends": ["prettier", "eslint:recommended", "plugin:react/recommended"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier", "prettier/react"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
Expand All @@ -31,12 +31,13 @@ module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": ["react", "@typescript-eslint"],
"extends": [
"prettier",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
Expand Down
8 changes: 4 additions & 4 deletions strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
"sourceType": "module"
},
"plugins": [],
"extends": ["prettier", "eslint:recommended"],
"extends": ["eslint:recommended", "prettier"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
Expand All @@ -31,12 +31,12 @@ module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"prettier",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
Expand Down

0 comments on commit cc6d937

Please sign in to comment.