1 | [ignore]
|
2 | ; We fork some components by platform
|
3 | .*/*[.]android.js
|
4 |
|
5 | ; Ignore templates for 'react-native init'
|
6 | .*/local-cli/templates/.*
|
7 |
|
8 | ; Ignore the Dangerfile
|
9 | <PROJECT_ROOT>/bots/dangerfile.js
|
10 |
|
11 | ; Ignore "BUCK" generated dirs
|
12 | <PROJECT_ROOT>/\.buckd/
|
13 |
|
14 | ; Ignore unexpected extra "@providesModule"
|
15 | .*/node_modules/.*/node_modules/fbjs/.*
|
16 |
|
17 | ; Ignore duplicate module providers
|
18 | ; For RN Apps installed via npm, "Libraries" folder is inside
|
19 | ; "node_modules/react-native" but in the source repo it is in the root
|
20 | .*/Libraries/react-native/React.js
|
21 |
|
22 | ; Ignore polyfills
|
23 | .*/Libraries/polyfills/.*
|
24 |
|
25 | ; Ignore metro
|
26 | ; .*/node_modules/metro/.*
|
27 |
|
28 | ; These should not be required directly
|
29 | ; require from fbjs/lib instead: require('fbjs/lib/invariant')
|
30 | .*/node_modules/invariant/.*
|
31 | .*/node_modules/warning/.*
|
32 |
|
33 | [include]
|
34 |
|
35 | [libs]
|
36 | Libraries/react-native/react-native-interface.js
|
37 | flow/
|
38 | flow-github/
|
39 |
|
40 | [options]
|
41 | emoji=true
|
42 |
|
43 | esproposal.optional_chaining=enable
|
44 | esproposal.nullish_coalescing=enable
|
45 |
|
46 | module.system=haste
|
47 | module.system.haste.use_name_reducers=true
|
48 | # keep the following in sync with server/haste/hasteImpl.js
|
49 | # get basename
|
50 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
|
51 | # strip .js or .js.flow suffix
|
52 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
|
53 | # strip .ios suffix
|
54 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
|
55 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
|
56 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
|
57 | module.system.haste.paths.blacklist=.*/__tests__/.*
|
58 | module.system.haste.paths.blacklist=.*/__mocks__/.*
|
59 | module.system.haste.paths.whitelist=<PROJECT_ROOT>/Libraries/.*
|
60 | module.system.haste.paths.whitelist=<PROJECT_ROOT>/RNTester/.*
|
61 | module.system.haste.paths.whitelist=<PROJECT_ROOT>/IntegrationTests/.*
|
62 | module.system.haste.paths.blacklist=<PROJECT_ROOT>/Libraries/Animated/src/polyfills/.*
|
63 |
|
64 | munge_underscores=true
|
65 |
|
66 | 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\)$' -> 'RelativeImageStub'
|
67 |
|
68 | suppress_type=$FlowIssue
|
69 | suppress_type=$FlowFixMe
|
70 | suppress_type=$FlowFixMeProps
|
71 | suppress_type=$FlowFixMeState
|
72 |
|
73 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_ios\\)?_oss|react_native\\(_ios\\)?_fb][a-z,_]*\\)?)\\)
|
74 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_ios\\)?_oss|react_native\\(_ios\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
|
75 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
76 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
77 |
|
78 | [lints]
|
79 | all=warn
|
80 | unnecessary-optional-chain=off
|
81 |
|
82 | # There is an ESLint rule for this
|
83 | unclear-type=off
|
84 |
|
85 | sketchy-null=off
|
86 | sketchy-null-number=warn
|
87 | sketchy-null-mixed=warn
|
88 |
|
89 | # This is noisy for now. We *do* still want to warn on importing types
|
90 | # from untyped files, which is covered by untyped-type-import
|
91 | untyped-import=off
|
92 |
|
93 | [strict]
|
94 | deprecated-type
|
95 | nonstrict-import
|
96 | sketchy-null
|
97 | unclear-type
|
98 | unsafe-getters-setters
|
99 | untyped-import
|
100 | untyped-type-import
|
101 |
|
102 | [version]
|
103 | ^0.78.0
|