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