1 |
|
2 |
|
3 |
|
4 | module.exports = {
|
5 | extends: ['prettier/flowtype'],
|
6 | plugins: ['flowtype'],
|
7 | rules: {
|
8 |
|
9 |
|
10 | 'flowtype/use-flow-type': 1,
|
11 |
|
12 |
|
13 |
|
14 | 'flowtype/no-mutable-array': 0,
|
15 | 'flowtype/no-unused-expressions': 0,
|
16 |
|
17 |
|
18 | 'flowtype/no-weak-types': 1,
|
19 |
|
20 |
|
21 | 'require-parameter-type': 0,
|
22 |
|
23 |
|
24 | 'flowtype/require-return-type': 0,
|
25 |
|
26 |
|
27 | 'flowtype/require-variable-type': 0,
|
28 | 'flowtype/require-parameter-type': 0,
|
29 |
|
30 |
|
31 | 'flowtype/require-valid-file-annotation': [1, 'always'],
|
32 |
|
33 |
|
34 | 'flowtype/boolean-style': 0,
|
35 |
|
36 | 'flowtype/no-dupe-keys': 2,
|
37 | 'flowtype/define-flow-type': 2,
|
38 | 'flowtype/no-types-missing-file-annotation': 2,
|
39 |
|
40 | 'flowtype/no-primitive-constructor-types': 2,
|
41 |
|
42 | 'flowtype/type-id-match': 0,
|
43 |
|
44 |
|
45 | 'spaced-comment': 0,
|
46 |
|
47 | 'flowtype/sort-keys': 0,
|
48 |
|
49 |
|
50 | 'flowtype/no-flow-fix-me-comments': 0,
|
51 |
|
52 |
|
53 | 'flowtype/require-exact-type': 0,
|
54 |
|
55 |
|
56 | 'flowtype/no-existential-type': 0,
|
57 |
|
58 |
|
59 | 'flowtype/require-types-at-top': 1,
|
60 |
|
61 |
|
62 | 'flowtype/type-import-style': 0,
|
63 |
|
64 |
|
65 | 'flowtype/newline-after-flow-annotation': 0,
|
66 |
|
67 |
|
68 | 'flowtype/require-types-at-top': 0,
|
69 |
|
70 |
|
71 | 'flowtype/array-style-simple-type': 2,
|
72 | 'flowtype/array-style-complex-type': 2,
|
73 | },
|
74 | }
|