mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 21:20:50 +00:00
55a4d105e7
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47636 We're cleaning up key spreads across WWW/Fbsource. Flow's `ban_spread_key_props` option allows us to fix existing spreads and prevent new ones from being added in code covered by Flow. Here we fix spreads within xplat/js. Also based on a unit test keeping config in sync, I've added the option to metro and RN OSS as well. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D64427942 fbshipit-source-id: db8f4aa428ce1994304b5d814b9d241d26e8d522
99 lines
2.2 KiB
Plaintext
99 lines
2.2 KiB
Plaintext
[ignore]
|
|
; Ignore build cache folder
|
|
<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>/packages/react-native-bots/dangerfile.js
|
|
|
|
; Ignore "BUCK" generated dirs
|
|
<PROJECT_ROOT>/\.buckd/
|
|
|
|
; Ignore other platform suffixes
|
|
.*\.macos\.js$
|
|
.*\.windows\.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>/packages/helloworld/ios/Pods/
|
|
|
|
; Ignore rn-tester Pods
|
|
<PROJECT_ROOT>/packages/rn-tester/Pods/
|
|
|
|
[untyped]
|
|
.*/node_modules/@react-native-community/cli/.*/.*
|
|
|
|
[include]
|
|
|
|
[declarations]
|
|
.*/node_modules/.*
|
|
|
|
[libs]
|
|
flow-typed/
|
|
packages/react-native/interface.js
|
|
packages/react-native/flow/
|
|
|
|
[options]
|
|
enums=true
|
|
casting_syntax=both
|
|
|
|
emoji=true
|
|
|
|
exact_by_default=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/\(.*\)$' -> '<PROJECT_ROOT>/packages/react-native/\1'
|
|
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\)$' -> '<PROJECT_ROOT>/packages/react-native/Libraries/Image/RelativeImageStub'
|
|
|
|
suppress_type=$FlowIssue
|
|
suppress_type=$FlowFixMe
|
|
suppress_type=$FlowFixMeProps
|
|
suppress_type=$FlowFixMeState
|
|
suppress_type=$FlowFixMeEmpty
|
|
|
|
ban_spread_key_props=true
|
|
|
|
[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.253.0
|