forked from microsoft/react-native-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.flowconfig
More file actions
178 lines (140 loc) · 5.88 KB
/
Copy path.flowconfig
File metadata and controls
178 lines (140 loc) · 5.88 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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[ignore]
; We fork some components by platform - ignore all platforms except win32
.*/*[.]android.js
.*/*[.]ios.js
.*/*[.]macos.js
.*/*[.]windesktop.js
; Ignore fb_internal modules
<PROJECT_ROOT>/packages/react-native/src/fb_internal/.*
; These modules have base components and win32 versions.
; Ideally we'd delete the base versions of files that had .win32 overrides as part of the
; initRNLibraries build step
<PROJECT_ROOT>/index.js
<PROJECT_ROOT>/Libraries/Alert/Alert.js
<PROJECT_ROOT>/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
<PROJECT_ROOT>/Libraries/Components/Button.js
<PROJECT_ROOT>/Libraries/Components/Pressable/Pressable.js
<PROJECT_ROOT>/Libraries/Components/SafeAreaView/SafeAreaView.js
<PROJECT_ROOT>/Libraries/Components/TextInput/TextInput.js
<PROJECT_ROOT>/Libraries/Components/TextInput/TextInputState.js
<PROJECT_ROOT>/Libraries/Components/Touchable/Touchable.js
<PROJECT_ROOT>/Libraries/Components/Touchable/TouchableNativeFeedback.js
<PROJECT_ROOT>/Libraries/Components/View/ViewAccessibility.js
<PROJECT_ROOT>/Libraries/Components/View/ReactNativeViewAttributes.js
<PROJECT_ROOT>/Libraries/Components/View/View.js
<PROJECT_ROOT>/Libraries/Components/View/ViewPropTypes.js
<PROJECT_ROOT>/Libraries/Image/Image.js
<PROJECT_ROOT>/Libraries/Inspector/Inspector.js
<PROJECT_ROOT>/Libraries/Inspector/InspectorOverlay.js
<PROJECT_ROOT>/Libraries/Network/RCTNetworking.js
<PROJECT_ROOT>/Libraries/Pressability/Pressability.js
<PROJECT_ROOT>/Libraries/Pressability/HoverState.js
<PROJECT_ROOT>/Libraries/Renderer/shims/ReactNativeTypes.js
<PROJECT_ROOT>/Libraries/StyleSheet/PlatformColorValueTypes.js
<PROJECT_ROOT>/Libraries/Text/TextProps.js
<PROJECT_ROOT>/Libraries/Types/CoreEventTypes.js
<PROJECT_ROOT>/Libraries/Utilities/Dimensions.js
<PROJECT_ROOT>/Libraries/Utilities/Platform.flow.js
<PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js
<PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorHeader.js
<PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js
<PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js
<PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxStyle.js
<PROJECT_ROOT>/IntegrationTests/ImageCachePolicyTest.js
<PROJECT_ROOT>/IntegrationTests/LayoutEventsTest.js
<PROJECT_ROOT>/IntegrationTests/IntegrationTestsApp.js
; Ignore react-native files in node_modules since they are copied into project root
.*/node_modules/react-native/.*
; Ignore all flow directory contents in node_modules
.*/flow/.*
; Ignore react-native-windows' build output. Flow is not compiled with long path support and after running unittests these folders have long paths
.*/node_modules/react-native-windows/build/.*
.*/node_modules/react-native-windows/target/.*
.*/node_modules/react-native-windows/Microsoft.ReactNative.Managed.CodeGen.UnitTests/.*
.*/node_modules/react-native-windows/Microsoft.ReactNative.Managed.UnitTests/.*
; These files dont need to be checked and just increase the build time
.*/node_modules/e2etest/.*
.*/node_modules/playground/.*
<PROJECT_ROOT>/packages/react-native/sdks/.*
; Ignore the codegen e2e tests
<PROJECT_ROOT>/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
; Ignore the Dangerfile
<PROJECT_ROOT>/private/react-native-bots/dangerfile.js
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore cache files
.*/node_modules/.cache*
; Ignore the src-win folder - flow files are combined with ones from react-native into the root Libraries folder
.*/react-native-win32/src-win/.*
; Ignore the private __tests__ (until this is fixed: https://github.com/facebook/react-native/issues/43242)
.*/react-native-win32/src/private/.*/__tests__/.*
; Ignore files with flow typing issues #9223
.*/react-native-win32/Libraries/Core/ReactNativeVersionCheck.js
.*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$
; Checked-in build output
<PROJECT_ROOT>/packages/debugger-frontend/dist/
; Generated build output
<PROJECT_ROOT>/packages/.*/dist
; helloworld
<PROJECT_ROOT>/private/helloworld/ios/Pods/
; Ignore rn-tester Pods
<PROJECT_ROOT>/packages/rn-tester/Pods/
[untyped]
.*/node_modules/@react-native-community/cli/.*/.*
; Should work out how to do this properly
.*/react-native-win32/Libraries/Image/resolveAssetSource.win32.js
[include]
; Need to include hoisted modules
../../../node_modules/
[libs]
interface.js
../../../node_modules/.flow/flow/
../../../node_modules/.flow/flow-typed/
../../../node_modules/react-native/src/types
src/types/
[options]
enums=true
experimental.pattern_matching=true
casting_syntax=both
component_syntax=true
emoji=true
exact_by_default=true
format.bracket_spacing=false
module.file_ext=.js
module.file_ext=.json
module.file_ext=.win32.js
; [Win32]
;experimental.multi_platform=true
;experimental.multi_platform.extensions=.ios
;experimental.multi_platform.extensions=.android
munge_underscores=true
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/index.win32.js'
module.name_mapper='^@office-iss/react-native-win32$' -> '<PROJECT_ROOT>/index.win32.js'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
module.name_mapper='^@office-iss/react-native-win32/\(.*\)$' -> '<PROJECT_ROOT>\/1'
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/\1'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\|xml\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub'
module.system.haste.module_ref_prefix=m#
react.runtime=automatic
ban_spread_key_props=true
sharedmemory.hash_table_pow=21
[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=error
unsafe-getters-setters=warn
unnecessary-invariant=warn
unused-promise=error
[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import
[version]
^0.280.0