mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
a99c9764aa
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39028 The regular expressions that we use to ignore other platform suffixes are wrong or unnecessarily complicated. This diff cleans them up to be idiomatic regular expressions without any extra constructs. Changelog: [Internal] Reviewed By: samwgoldman Differential Revision: D48377329 fbshipit-source-id: e6d6c36b3dd6f524cc28a3cfb2938abb06dd8ab6
80 lines
1.7 KiB
Plaintext
80 lines
1.7 KiB
Plaintext
[ignore]
|
|
; Ignore other platform suffixes
|
|
.*\.ios\.js$
|
|
|
|
; Ignore templates for 'react-native init'
|
|
<PROJECT_ROOT>/packages/react-native/template/.*
|
|
|
|
; Ignore the Dangerfile
|
|
<PROJECT_ROOT>/packages/react-native-bots/dangerfile.js
|
|
|
|
; Ignore "BUCK" generated dirs
|
|
<PROJECT_ROOT>/\.buckd/
|
|
|
|
; Flow doesn't support platforms
|
|
.*/packages/react-native/Libraries/Utilities/LoadingView.js
|
|
|
|
.*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$
|
|
|
|
[untyped]
|
|
.*/node_modules/@react-native-community/cli/.*/.*
|
|
|
|
[include]
|
|
|
|
[declarations]
|
|
.*/node_modules/.*
|
|
|
|
[libs]
|
|
flow-typed/
|
|
packages/react-native/interface.js
|
|
packages/react-native/flow/
|
|
|
|
[options]
|
|
experimental.global_find_ref=true
|
|
enums=true
|
|
|
|
emoji=true
|
|
|
|
exact_by_default=true
|
|
|
|
format.bracket_spacing=false
|
|
|
|
module.file_ext=.js
|
|
module.file_ext=.json
|
|
module.file_ext=.android.js
|
|
|
|
munge_underscores=true
|
|
|
|
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/packages/react-native/index.js'
|
|
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/packages/react-native\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\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
|
|
|
|
suppress_type=$FlowIssue
|
|
suppress_type=$FlowFixMe
|
|
suppress_type=$FlowFixMeProps
|
|
suppress_type=$FlowFixMeState
|
|
suppress_type=$FlowFixMeEmpty
|
|
|
|
[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.214.0
|