1 | # all available lint rules: https://flow.org/en/docs/linting/rule-reference/
|
2 | [lints]
|
3 | all=error
|
4 | implicit-inexact-object=error
|
5 | unclear-type=off
|
6 | untyped-import=off
|
7 | # broken rule which should be allowed always:
|
8 | sketchy-null=off
|
9 | # allow sketchy check at least for numbers where it can be dangerous because of 0:
|
10 | sketchy-null-number=error
|
11 | # this effectively turns off advantage of strict mode:
|
12 | # necessary because orbit does not use strict mode:
|
13 | # also just FYI if you ever want to turn it on, there is `@flow strict-local` for this purpose
|
14 | # https://flow.org/en/docs/strict/#toc-strict-local
|
15 | nonstrict-import=off
|
16 |
|
17 | # set of recommended rules for strict mode: https://flow.org/en/docs/strict/
|
18 | [strict]
|
19 | unclear-type
|
20 | untyped-import
|
21 | # broken lint rules which should be allowed for strict mode
|
22 | # ambiguous-object-type
|
23 |
|
24 | # turns off linting or flow issues in dependencies
|
25 | # see https://flow.org/en/docs/config/declarations/
|
26 | [declarations]
|
27 | .+/node_modules/.+
|
28 |
|
29 | [libs]
|
30 | flow-typed
|
31 |
|
32 | [ignore]
|
33 | # Not needed to check 'lib' anymore
|
34 | <PROJECT_ROOT>/lib/.*
|
35 |
|
36 | [include]
|
37 | # necessary as shared dependencies are hoisted to monorepo level
|
38 | ../../node_modules/
|
39 |
|
40 | [options]
|
41 | emoji=true
|
42 |
|
43 | # This option lets you alias 'any' with a given string
|
44 | suppress_type=$FlowFixMe
|
45 |
|
46 | # I would recommend turning this on eventually
|
47 | types_first=false
|
48 |
|