This repository has been archived by the owner on Jun 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path.flowconfig
132 lines (100 loc) · 4.48 KB
/
.flowconfig
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[ignore]
; We fork some components by platform
.*/node_modules/.*/*[.]android.js
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
<PROJECT_ROOT>/apps/landingPage/node_modules/fbjs/.*
<PROJECT_ROOT>/packages/universal-components/docs/node_modules/fbjs/.*
; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
; Ignore polyfills
.*/Libraries/polyfills/.*
; Ignore metro
.*/node_modules/metro/.*
; Ignore Expo
.*/node_modules/@expo/traveling-fastlane-linux/.*
.*/node_modules/@expo/traveling-fastlane-darwin/.*
; My custom ignores
<PROJECT_ROOT>/\.git/
<PROJECT_ROOT>/node_modules/reqwest/.+
<PROJECT_ROOT>/node_modules/fbemitter/.+
<PROJECT_ROOT>/node_modules/xdl/build/detach/.+
<PROJECT_ROOT>/node_modules/react-native-web/.+
<PROJECT_ROOT>/packages/universal-components/docs/node_modules/react-native-web/.+
<PROJECT_ROOT>/packages/universal-components/docs/node_modules/rc-util/.+
; Generated by storybook
<PROJECT_ROOT>/packages/universal-components/lib/.*
; Problems with this library which react-native-storybook-loader depends on
.*/node_modules/findup/.*
; TODO in universal-components
<PROJECT_ROOT>/node_modules/@kiwicom/universal-components/lib/web/Loader/PageLoader.js.flow
<PROJECT_ROOT>/node_modules/@kiwicom/universal-components/lib/web/TextInput/TextInput.js.flow
<PROJECT_ROOT>/node_modules/@kiwicom/universal-components/lib/web/Text/Text.js.flow
<PROJECT_ROOT>/node_modules/@kiwicom/universal-components/lib/web/TagsInput/components/InputField.js.flow
<PROJECT_ROOT>/node_modules/@kiwicom/universal-components/lib/web/PlatformStyleSheet/StyleSheet.js.flow
[include]
[untyped]
; Be careful - do not add 'StyleSheet' here
<PROJECT_ROOT>/node_modules/graphql/.*
<PROJECT_ROOT>/node_modules/react-native-paper/.*
<PROJECT_ROOT>/node_modules/react-native/Libraries/StyleSheet/StyleSheetValidation.js
<PROJECT_ROOT>/node_modules/react-native/Libraries/StyleSheet/processTransform.js
<PROJECT_ROOT>/node_modules/react-native/Libraries/Text/.*
<PROJECT_ROOT>/node_modules/react-native/Libraries/Lists/.*
<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/.*
<PROJECT_ROOT>/node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js
<PROJECT_ROOT>/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js
<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/Image.ios.js
<PROJECT_ROOT>/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js
<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/AnimatedEvent.js
.+/node_modules/graphql-iso-date/dist/date/index.js
.+/node_modules/graphql-iso-date/dist/dateTime/index.js
.+/node_modules/graphql-iso-date/dist/time/index.js
; @kiwicom/orbit-components uses old Flow version:
; https://github.com/kiwicom/orbit-components/issues/1010
.+/node_modules/@kiwicom/orbit-components/lib/index.js
.+/node_modules/@kiwicom/orbit-components/lib/getTokens.js
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/
flow-typed/
[options]
server.max_workers=4
emoji=true
module.name_mapper='^@kiwicom/universal-components$' -> '<PROJECT_ROOT>/packages/universal-components/src'
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable
module.system=haste
munge_underscores=true
module.name_mapper.extension='\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)' -> 'RelativeImageStub'
module.file_ext=.js
module.file_ext=.android.js
module.file_ext=.ios.js
module.file_ext=.web.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js
; This option lets you alias 'any' with a given string - useful for explaining why you’re using 'any'
; Please, do not use "fix me" suppress types and comments
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue: https://github.com/facebook/flow/issues/[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError: .+
[lints]
unnecessary-optional-chain=error
[strict]
;nonstrict-import
unclear-type
unsafe-getters-setters
;untyped-import
;untyped-type-import
sketchy-null
[version]
^0.98.0