1 |
|
2 |
|
3 |
|
4 |
|
5 | module.exports = {
|
6 | extends: ['prettier/flowtype'],
|
7 | plugins: ['flowtype'],
|
8 | rules: {
|
9 |
|
10 |
|
11 | 'flowtype/use-flow-type': 1,
|
12 |
|
13 |
|
14 |
|
15 | 'flowtype/no-mutable-array': 0,
|
16 | 'flowtype/no-unused-expressions': 0,
|
17 | 'flowtype/no-weak-types': 1,
|
18 |
|
19 |
|
20 | 'require-parameter-type': 0,
|
21 |
|
22 |
|
23 | 'flowtype/require-return-type': 0,
|
24 |
|
25 |
|
26 | 'flowtype/require-variable-type': 0,
|
27 | 'flowtype/require-parameter-type': 0,
|
28 |
|
29 |
|
30 | 'flowtype/require-valid-file-annotation': [1, 'always'],
|
31 |
|
32 |
|
33 | 'flowtype/boolean-style': 0,
|
34 |
|
35 | 'flowtype/no-dupe-keys': 2,
|
36 | 'flowtype/define-flow-type': 2,
|
37 | 'flowtype/no-types-missing-file-annotation': 2,
|
38 |
|
39 | 'flowtype/no-primitive-constructor-types': 2,
|
40 |
|
41 | 'flowtype/type-id-match': 0,
|
42 |
|
43 |
|
44 | 'spaced-comment': 0,
|
45 |
|
46 | 'flowtype/sort-keys': 0,
|
47 |
|
48 |
|
49 | 'flowtype/no-flow-fix-me-comments': 0,
|
50 | },
|
51 | }
|