Skip to content

Commit

Permalink
fix: Separate flowtype preset from the base one
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Okonetchnikov committed Sep 13, 2017
1 parent a1b48ca commit 4fd8a40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 10 additions & 0 deletions flowtype.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict'

module.exports = {
parser: require.resolve('babel-eslint'),
plugins: ['flowtype'],
extends: [
'eslint-plugin-flowtype/dist/configs/recommended',
'eslint-config-prettier/flowtype'
].map(require.resolve)
}
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ module.exports = {
extends: [
'eslint-config-airbnb-base',
'eslint-config-airbnb-base/rules/strict',
'eslint-plugin-flowtype/dist/configs/recommended',
'eslint-config-prettier',
'eslint-config-prettier/flowtype'
'eslint-config-prettier'
].map(require.resolve),
plugins: ['flowtype', 'prettier'],
plugins: ['prettier'],
rules: {
'padded-blocks': [0, 'never'],
'id-length': [2, { exceptions: ['b', 'x', 'y', 'i'] }],
Expand Down

0 comments on commit 4fd8a40

Please sign in to comment.