UNPKG

1.3 kBPlain TextView Raw
1# all available lint rules: https://flow.org/en/docs/linting/rule-reference/
2[lints]
3all=error
4implicit-inexact-object=error
5unclear-type=off
6untyped-import=off
7# broken rule which should be allowed always:
8sketchy-null=off
9# allow sketchy check at least for numbers where it can be dangerous because of 0:
10sketchy-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
15nonstrict-import=off
16
17# set of recommended rules for strict mode: https://flow.org/en/docs/strict/
18[strict]
19unclear-type
20untyped-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]
30flow-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]
41emoji=true
42
43# This option lets you alias 'any' with a given string
44suppress_type=$FlowFixMe
45
46# I would recommend turning this on eventually
47types_first=false
48