1 | module.exports = {
|
2 | plugins: ['flowtype'],
|
3 | parser: 'babel-eslint',
|
4 | parserOptions: {
|
5 | sourceType: 'module',
|
6 | },
|
7 | env: {
|
8 | es6: true,
|
9 | },
|
10 | rules: {
|
11 | 'flowtype/define-flow-type': 'warn',
|
12 | 'flowtype/use-flow-type': 'warn',
|
13 | 'flowtype/boolean-style': ['warn', 'boolean'],
|
14 | 'flowtype/no-dupe-keys': 'warn',
|
15 | 'flowtype/no-primitive-constructor-types': 'warn',
|
16 | 'flowtype/no-types-missing-file-annotation': 'warn',
|
17 | 'flowtype/require-valid-file-annotation': ['warn', 'never'],
|
18 | },
|
19 | settings: {
|
20 | flowtype: {
|
21 | onlyFilesWithFlowAnnotation: true,
|
22 | },
|
23 | },
|
24 | };
|