|
2 | 2 | ; We fork some components by platform
|
3 | 3 | .*/*[.]android.js
|
4 | 4 |
|
5 |
| -; Ignore templates for 'react-native init' |
6 |
| -.*/local-cli/templates/.* |
7 |
| - |
8 |
| -; Ignore the website subdir |
9 |
| -<PROJECT_ROOT>/website/.* |
10 |
| - |
11 | 5 | ; Ignore "BUCK" generated dirs
|
12 | 6 | <PROJECT_ROOT>/\.buckd/
|
13 | 7 |
|
|
18 | 12 | ; For RN Apps installed via npm, "Libraries" folder is inside
|
19 | 13 | ; "node_modules/react-native" but in the source repo it is in the root
|
20 | 14 | .*/Libraries/react-native/React.js
|
21 |
| -.*/Libraries/react-native/ReactNative.js |
22 | 15 |
|
23 |
| -; Ignore libraries with broken flow |
24 |
| -.*/node_modules/react-native/.* |
25 |
| -.*/node_modules/styled-components/.* |
26 |
| -.*/node_modules/metro-bundler/.* |
| 16 | +; Ignore polyfills |
| 17 | +.*/Libraries/polyfills/.* |
| 18 | + |
| 19 | +; Ignore metro |
| 20 | +.*/node_modules/metro/.* |
27 | 21 |
|
28 | 22 | [include]
|
29 | 23 |
|
30 | 24 | [libs]
|
31 | 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
|
32 | 26 | node_modules/react-native/flow/
|
| 27 | +node_modules/react-native/flow-github/ |
33 | 28 |
|
34 | 29 | [options]
|
| 30 | +emoji=true |
| 31 | + |
| 32 | +esproposal.optional_chaining=enable |
| 33 | +esproposal.nullish_coalescing=enable |
| 34 | + |
35 | 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/.* |
36 | 49 |
|
37 | 50 | munge_underscores=true
|
38 | 51 |
|
39 |
| -module.name_mapper='^react-native$' -> 'emptyObject' |
40 |
| -module.name_mapper='^styled-components$' -> 'emptyObject' |
41 |
| - |
42 | 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'
|
43 | 53 |
|
| 54 | +module.file_ext=.js |
| 55 | +module.file_ext=.jsx |
| 56 | +module.file_ext=.json |
| 57 | +module.file_ext=.native.js |
| 58 | + |
44 | 59 | suppress_type=$FlowIssue
|
45 | 60 | suppress_type=$FlowFixMe
|
46 |
| -suppress_type=$FixMe |
| 61 | +suppress_type=$FlowFixMeProps |
| 62 | +suppress_type=$FlowFixMeState |
47 | 63 |
|
48 |
| -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) |
49 |
| -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ |
| 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]+ |
50 | 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
| 67 | +suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError |
51 | 68 |
|
52 | 69 | [version]
|
53 | 70 | ^0.79.1
|
0 commit comments