forked from fusionjs/eslint-config-fusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
24 lines (21 loc) · 849 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// @flow
module.exports = {
extends: [
'plugin:flowtype/recommended',
'plugin:react/recommended',
'plugin:jest/recommended',
'./rules/imports.js',
// This comes last so that prettier-config can turn off appropriate rules given the order of precedence by eslint 'extends'
require.resolve('eslint-config-uber-universal-stage-3'),
],
plugins: ['eslint-plugin-flowtype', 'eslint-plugin-react'],
rules: {
// Enforce flow file declarations
'flowtype/require-valid-file-annotation': ['error', 'always'],
// We should be using flow rather than propTypes
'react/prop-types': 'off',
// Enforces consistent spacing within generic type annotation parameters.
// https://github.com/gajus/eslint-plugin-flowtype/blob/master/.README/rules/generic-spacing.md
'flowtype/generic-spacing': 'off',
},
};