Skip to content

Commit 54f8455

Browse files
committed
Update some eslint rules for flow support
1 parent 1cdd200 commit 54f8455

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/config/eslint.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ module.exports = {
1616
plugins: ['flowtype'],
1717
rules: {
1818
// airbnb config modifications
19-
'no-unused-vars': 'warn',
19+
'no-unused-vars': 'warn', // easier for development
2020
'linebreak-style': 'off',
21-
'arrow-parens': 'off', // ['error', 'as-needed'], conflict with prettier
22-
'react/prop-types': 'off', // conflict with Flow
21+
'arrow-parens': 'off', // conflict with Prettier
22+
'react/prop-types': 'off', // not needed with Flow
23+
'react/require-default-props': 'off', // not needed with Flow
2324
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
2425

2526
// flowtype

0 commit comments

Comments
 (0)