-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split up config so it can be used without flow
- Loading branch information
Showing
5 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
module.exports = { | ||
extends: ['./javascript', './prettier'].map(require.resolve) | ||
extends: [ | ||
"./javascript", | ||
"./prettier", | ||
"./prettier-react/", | ||
"./prettier-flowtype/" | ||
].map(require.resolve) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
extends: ["prettier/flowtype"], | ||
parser: "babel-eslint" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
extends: ["prettier/react"], | ||
parser: "babel-eslint" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
module.exports = { | ||
extends: [ | ||
'plugin:prettier/recommended', // enables-eslint-plugin-prettier, sets the prettier/prettier rule to "error", extends eslint-config-prettier so that we can set prettier options in .prettierrc | ||
'prettier/flowtype', | ||
'prettier/react' | ||
"plugin:prettier/recommended" // enables-eslint-plugin-prettier, sets the prettier/prettier rule to "error", extends eslint-config-prettier so that we can set prettier options in .prettierrc | ||
], | ||
// "plugins": [ | ||
// "prettier", enabled by the plugin;prettier/recommneded extension | ||
// ], | ||
parser: 'babel-eslint' | ||
parser: "babel-eslint" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
module.exports = { | ||
extends: ['../javascript', '../react', '../flowtype', '../prettier'].map( | ||
require.resolve | ||
) | ||
extends: [ | ||
"../javascript", | ||
"../react", | ||
"../flowtype", | ||
"../prettier", | ||
"../prettier-react/", | ||
"../prettier-flowtype/" | ||
].map(require.resolve) | ||
}; |