forked from facebookarchive/draft-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.flowconfig
More file actions
55 lines (49 loc) · 1.71 KB
/
.flowconfig
File metadata and controls
55 lines (49 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[ignore]
.*/__tests__.*
.*/react/node_modules/.*
.*/react-dom/node_modules/.*
.*/fbjs/node_modules/.*
.*/node_modules/invariant/.*
.*/node_modules/fbjs/lib/emptyFunction.js.flow
[include]
../node_modules/fbjs/lib/
../node_modules/immutable
../node_modules/react
../node_modules/react-dom/
[libs]
../node_modules/fbjs/flow/lib
./flowlib/
[options]
module.system=haste
module.system.haste.use_name_reducers=true
# keep the following in sync with server/haste/hasteImpl.js
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
module.system.haste.paths.includes=<PROJECT_ROOT>/.*
module.system.haste.paths.includes=.*/node_modules/fbjs/lib/.*
module.system.haste.paths.excludes=.*/__tests__/.*
module.system.haste.paths.excludes=.*/react/node_modules/.*
module.system.haste.paths.excludes=.*/react-dom/node_modules/.*
module.system.haste.paths.excludes=.*/fbjs/node_modules/.*
module.system.haste.paths.excludes=.*/node_modules/invariant/.*
esproposal.class_static_fields=enable
esproposal.optional_chaining=enable
suppress_type=$FlowIssue
; suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-8]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\).*\n
; suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
module.name_mapper='ReactDOMComet' -> 'react-dom'
[strict]
deprecated-type
sketchy-null
unclear-type
unsafe-getters-setters
; Can't enable these- immutable.js raises errors
; untyped-import
; untyped-type-import
; Can't enable this one- getTextContentFromFiles requires invariant.
; The publicly-available fbjs version of invariant isn't flow strict.
; nonstrict-import
[version]
^0.130.0