mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
fcffb961fa
Summary: Changelog: [Internal] This lint is now an error by default, so we no longer need to manually specify it as such in the flowconfig Reviewed By: gkz Differential Revision: D23145523 fbshipit-source-id: 6c104563793fbc67c8b15b7310e96d1750d21df3
83 lines
1.7 KiB
Plaintext
83 lines
1.7 KiB
Plaintext
[ignore]
|
|
; We fork some components by platform
|
|
.*/*[.]android.js
|
|
|
|
; Ignore templates for 'react-native init'
|
|
<PROJECT_ROOT>/template/.*
|
|
|
|
; Ignore the Dangerfile
|
|
<PROJECT_ROOT>/bots/dangerfile.js
|
|
|
|
; Ignore "BUCK" generated dirs
|
|
<PROJECT_ROOT>/\.buckd/
|
|
|
|
; These should not be required directly
|
|
; require from fbjs/lib instead: require('fbjs/lib/warning')
|
|
.*/node_modules/warning/.*
|
|
|
|
; Flow doesn't support platforms
|
|
.*/Libraries/Utilities/LoadingView.js
|
|
|
|
[untyped]
|
|
.*/node_modules/@react-native-community/cli/.*/.*
|
|
|
|
[include]
|
|
|
|
[declarations]
|
|
.*/node_modules/.*
|
|
|
|
[libs]
|
|
interface.js
|
|
flow/
|
|
|
|
[options]
|
|
emoji=true
|
|
|
|
esproposal.optional_chaining=enable
|
|
esproposal.nullish_coalescing=enable
|
|
|
|
exact_by_default=true
|
|
|
|
module.file_ext=.js
|
|
module.file_ext=.json
|
|
module.file_ext=.ios.js
|
|
|
|
munge_underscores=true
|
|
|
|
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/index.js'
|
|
module.name_mapper='^react-native/\(.*\)$' -> '<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\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub'
|
|
|
|
suppress_type=$FlowIssue
|
|
suppress_type=$FlowFixMe
|
|
suppress_type=$FlowFixMeProps
|
|
suppress_type=$FlowFixMeState
|
|
suppress_type=$FlowFixMeEmpty
|
|
|
|
well_formed_exports=true
|
|
types_first=true
|
|
experimental.abstract_locations=true
|
|
|
|
[lints]
|
|
sketchy-null-number=warn
|
|
sketchy-null-mixed=warn
|
|
sketchy-number=warn
|
|
untyped-type-import=warn
|
|
nonstrict-import=warn
|
|
deprecated-type=warn
|
|
unsafe-getters-setters=warn
|
|
unnecessary-invariant=warn
|
|
signature-verification-failure=warn
|
|
|
|
[strict]
|
|
deprecated-type
|
|
nonstrict-import
|
|
sketchy-null
|
|
unclear-type
|
|
unsafe-getters-setters
|
|
untyped-import
|
|
untyped-type-import
|
|
|
|
[version]
|
|
^0.131.0
|