|
2 | 2 | ; We fork some components by platform
|
3 | 3 | .*/*[.]android.js
|
4 | 4 |
|
5 |
| -; Ignore templates for 'react-native init' |
6 |
| -<PROJECT_ROOT>/node_modules/react-native/local-cli/templates/.* |
7 |
| - |
8 |
| -; Ignore RN jest |
9 |
| -<PROJECT_ROOT>/node_modules/react-native/jest/.* |
10 |
| - |
11 |
| -; Ignore RNTester |
12 |
| -<PROJECT_ROOT>/node_modules/react-native/RNTester/.* |
13 |
| - |
14 |
| -; Ignore the website subdir |
15 |
| -<PROJECT_ROOT>/node_modules/react-native/website/.* |
16 |
| - |
17 |
| -; Ignore the Dangerfile |
18 |
| -<PROJECT_ROOT>/node_modules/react-native/danger/dangerfile.js |
19 |
| - |
20 |
| -; Ignore Fbemitter |
21 |
| -<PROJECT_ROOT>/node_modules/fbemitter/.* |
22 |
| - |
23 | 5 | ; Ignore "BUCK" generated dirs
|
24 |
| -<PROJECT_ROOT>/node_modules/react-native/\.buckd/ |
| 6 | +<PROJECT_ROOT>/\.buckd/ |
25 | 7 |
|
26 | 8 | ; Ignore unexpected extra "@providesModule"
|
27 | 9 | .*/node_modules/.*/node_modules/fbjs/.*
|
28 | 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 |
| 15 | + |
29 | 16 | ; Ignore polyfills
|
30 |
| -<PROJECT_ROOT>/node_modules/react-native/Libraries/polyfills/.* |
| 17 | +.*/Libraries/polyfills/.* |
31 | 18 |
|
32 |
| -; Ignore various node_modules |
33 |
| -<PROJECT_ROOT>/node_modules/react-native-gesture-handler/.* |
34 |
| -<PROJECT_ROOT>/node_modules/expo/.* |
35 |
| -<PROJECT_ROOT>/node_modules/react-navigation/.* |
36 |
| -<PROJECT_ROOT>/node_modules/xdl/.* |
37 |
| -<PROJECT_ROOT>/node_modules/reqwest/.* |
38 |
| -<PROJECT_ROOT>/node_modules/metro-bundler/.* |
| 19 | +; Ignore metro |
| 20 | +.*/node_modules/metro/.* |
39 | 21 |
|
40 | 22 | [include]
|
41 | 23 |
|
42 | 24 | [libs]
|
43 | 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
|
44 | 26 | node_modules/react-native/flow/
|
45 |
| -node_modules/expo/flow/ |
| 27 | +node_modules/react-native/flow-github/ |
46 | 28 |
|
47 | 29 | [options]
|
48 | 30 | emoji=true
|
49 | 31 |
|
50 | 32 | module.system=haste
|
51 |
| - |
52 |
| -module.file_ext=.js |
53 |
| -module.file_ext=.jsx |
54 |
| -module.file_ext=.json |
55 |
| -module.file_ext=.ios.js |
| 33 | +module.system.haste.use_name_reducers=true |
| 34 | +# get basename |
| 35 | +module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' |
| 36 | +# strip .js or .js.flow suffix |
| 37 | +module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' |
| 38 | +# strip .ios suffix |
| 39 | +module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' |
| 40 | +module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' |
| 41 | +module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' |
| 42 | +module.system.haste.paths.blacklist=.*/__tests__/.* |
| 43 | +module.system.haste.paths.blacklist=.*/__mocks__/.* |
| 44 | +module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.* |
| 45 | +module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.* |
56 | 46 |
|
57 | 47 | munge_underscores=true
|
58 | 48 |
|
59 | 49 | 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'
|
60 | 50 |
|
| 51 | +module.file_ext=.js |
| 52 | +module.file_ext=.jsx |
| 53 | +module.file_ext=.json |
| 54 | +module.file_ext=.native.js |
| 55 | + |
61 | 56 | suppress_type=$FlowIssue
|
62 | 57 | suppress_type=$FlowFixMe
|
63 | 58 | suppress_type=$FlowFixMeProps
|
64 | 59 | suppress_type=$FlowFixMeState
|
65 |
| -suppress_type=$FixMe |
66 | 60 |
|
67 |
| -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\) |
68 |
| -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+ |
| 61 | +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) |
| 62 | +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ |
69 | 63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
70 | 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
71 | 65 |
|
72 |
| -unsafe.enable_getters_and_setters=true |
73 |
| - |
74 | 66 | [version]
|
75 |
| -^0.56.0 |
| 67 | +^0.75.0 |
0 commit comments