|
7 | 7 |
|
8 | 8 | ; Ignore unexpected extra "@providesModule" |
9 | 9 | .*/node_modules/.*/node_modules/fbjs/.* |
10 | | -.*/node_modules/react-native/RNTester/.* |
11 | 10 |
|
12 | 11 | ; Ignore duplicate module providers |
13 | 12 | ; For RN Apps installed via npm, "Libraries" folder is inside |
14 | 13 | ; "node_modules/react-native" but in the source repo it is in the root |
15 | | -.*/Libraries/react-native/React.js |
16 | | -.*/Libraries/react-native/ReactNative.js |
| 14 | +node_modules/react-native/Libraries/react-native/React.js |
17 | 15 |
|
18 | | -<PROJECT_ROOT>/\example/ |
| 16 | +; Ignore polyfills |
| 17 | +node_modules/react-native/Libraries/polyfills/.* |
| 18 | + |
| 19 | +; These should not be required directly |
| 20 | +; require from fbjs/lib instead: require('fbjs/lib/warning') |
| 21 | +node_modules/warning/.* |
| 22 | + |
| 23 | +; Flow doesn't support platforms |
| 24 | +.*/Libraries/Utilities/HMRLoadingView.js |
| 25 | + |
| 26 | +[untyped] |
| 27 | +.*/node_modules/@react-native-community/cli/.*/.* |
19 | 28 |
|
20 | 29 | [include] |
21 | 30 |
|
22 | 31 | [libs] |
23 | 32 | node_modules/react-native/Libraries/react-native/react-native-interface.js |
24 | | -node_modules/react-native/flow |
| 33 | +node_modules/react-native/flow/ |
25 | 34 |
|
26 | 35 | [options] |
27 | 36 | emoji=true |
28 | 37 |
|
29 | | -module.system=haste |
| 38 | +esproposal.optional_chaining=enable |
| 39 | +esproposal.nullish_coalescing=enable |
30 | 40 |
|
31 | | -experimental.strict_type_args=true |
| 41 | +module.file_ext=.js |
| 42 | +module.file_ext=.json |
| 43 | +module.file_ext=.ios.js |
32 | 44 |
|
33 | | -esproposal.decorators=ignore |
34 | | -esproposal.class_static_fields=enable |
35 | | -esproposal.class_instance_fields=enable |
| 45 | +module.system=haste |
| 46 | +module.system.haste.use_name_reducers=true |
| 47 | +# get basename |
| 48 | +module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' |
| 49 | +# strip .js or .js.flow suffix |
| 50 | +module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' |
| 51 | +# strip .ios suffix |
| 52 | +module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' |
| 53 | +module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' |
| 54 | +module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' |
| 55 | +module.system.haste.paths.blacklist=.*/__tests__/.* |
| 56 | +module.system.haste.paths.blacklist=.*/__mocks__/.* |
| 57 | +module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.* |
| 58 | +module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.* |
| 59 | +module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.* |
| 60 | +module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js |
| 61 | +module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.* |
36 | 62 |
|
37 | 63 | munge_underscores=true |
38 | 64 |
|
39 | | -module.file_ext=.ios.js |
40 | | -module.file_ext=.js |
41 | | -module.file_ext=.jsx |
42 | | -module.file_ext=.json |
43 | 65 | 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' |
44 | 66 |
|
45 | 67 | suppress_type=$FlowIssue |
46 | 68 | suppress_type=$FlowFixMe |
47 | | -suppress_type=$FixMe |
48 | | - |
49 | 69 | suppress_type=$FlowFixMeProps |
50 | 70 | suppress_type=$FlowFixMeState |
51 | | -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) |
52 | | -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ |
53 | | -suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy |
| 71 | + |
| 72 | +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\) |
| 73 | +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+ |
54 | 74 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError |
55 | 75 |
|
56 | | -unsafe.enable_getters_and_setters=true |
| 76 | +[lints] |
| 77 | +sketchy-null-number=warn |
| 78 | +sketchy-null-mixed=warn |
| 79 | +sketchy-number=warn |
| 80 | +untyped-type-import=warn |
| 81 | +nonstrict-import=warn |
| 82 | +deprecated-type=warn |
| 83 | +unsafe-getters-setters=warn |
| 84 | +inexact-spread=warn |
| 85 | +unnecessary-invariant=warn |
| 86 | +signature-verification-failure=warn |
| 87 | +deprecated-utility=error |
| 88 | + |
| 89 | +[strict] |
| 90 | +deprecated-type |
| 91 | +nonstrict-import |
| 92 | +sketchy-null |
| 93 | +unclear-type |
| 94 | +unsafe-getters-setters |
| 95 | +untyped-import |
| 96 | +untyped-type-import |
57 | 97 |
|
58 | 98 | [version] |
59 | | -^0.53.0 |
| 99 | +^0.102.0 |
0 commit comments