Repository navigation
Expand file tree
/
Copy path.flowconfig
More file actions
122 lines (94 loc) · 3.96 KB
/
Copy path.flowconfig
File metadata and controls
122 lines (94 loc) · 3.96 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
[ignore]
; Ignore build cache folder
packages/react-native/sdks/**
; Ignore fb_internal modules
packages/react-native/src/fb_internal/**
; Ignore files excluded from the open-source repository
**/*.fb.*
; Ignore the codegen e2e tests
packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
; Ignore "BUCK" generated dirs
.buckd/**
; Ignore other platform suffixes
**/*.macos.js
**/*.windows.js
**/node_modules/resolve/test/resolver/malformed_package_json/package.json
**/node_modules/invariant/**
; Checked-in build output
packages/debugger-frontend/dist/**
; Generated build output
packages/*/dist/**
; helloworld
private/helloworld/ios/Pods/**
; Ignore rn-tester Pods
packages/rn-tester/Pods/**
[include]
[declarations]
.*/node_modules/.*
[libs]
flow-typed/
packages/react-native/flow/
[options]
experimental.tslib_syntax=true
builtin_lib=core-only
emoji=true
format.bracket_spacing=false
module.file_ext=.js
module.file_ext=.json
experimental.multi_platform=true
experimental.multi_platform.extensions=.ios
experimental.multi_platform.extensions=.android
munge_underscores=true
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/packages/react-native/index.js'
module.name_mapper='^react-native/asset-registry$' -> '<PROJECT_ROOT>/packages/react-native/src/asset-registry.js'
module.name_mapper='^react-native/package.json$' -> '<PROJECT_ROOT>/packages/react-native/package.json'
module.name_mapper='^react-native/react-private-interface$' -> '<PROJECT_ROOT>/packages/react-native/src/react-private-interface.js'
module.name_mapper='^react-native/setup-env$' -> '<PROJECT_ROOT>/packages/react-native/src/setup-env.js'
module.name_mapper='^react-native/unstable-internals-do-not-use$' -> '<PROJECT_ROOT>/packages/react-native/src/unstable-internals-do-not-use.js'
module.name_mapper='^react-native/scripts/\(.*\)$' -> '<PROJECT_ROOT>/packages/react-native/scripts/\1'
module.name_mapper='^react-native/src/fb_internal/\(.*\)$' -> '<PROJECT_ROOT>/packages/react-native/src/fb_internal/\1'
# Deep imports under React Native's implementation directories are redirected
# to a module that does not exist. Package roots, secondary entry points, and
# `src/fb_internal/*` stay importable.
module.name_mapper='^react-native/\(Libraries\|src/private\|src/types\)/.*$' -> 'react-native-deep-import-is-not-part-of-the-public-api'
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/packages/dev-middleware'
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\|ktx\|heic\|ttf\|heif\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
module.system.haste.module_ref_prefix=m#
react.runtime=automatic
ban_spread_key_props=true
experimental.react_managed_attributes=true
experimental.jsx_intrinsic_elements=true
experimental.require_function_type_param_name=true
experimental.require_dictionary_key_label=true
experimental.ban_explicit_exact_object_types=true
experimental.strict_es6_import_export=true
experimental.export_star_excludes_default=true
unsuppressable_error_codes=invalid-type-cast-syntax
unsuppressable_error_codes=deprecated-utility
unsuppressable_error_codes=missing-function-type-param-name
unsuppressable_error_codes=missing-dictionary-key-label
unsuppressable_error_codes=unsupported-exact-object-type
unsuppressable_error_codes=react-rule-hook-naming-convention
unsuppressable_error_codes=react-rule-hook-definitely-not-in-component-or-hook
unsuppressable_error_codes=react-rule-hook-mixed-with-non-hook
unsuppressable_error_codes=react-rule-hook-non-hook-syntax
[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.340.0