|
| 1 | +[ignore] |
| 2 | +; We fork some components by platform |
| 3 | +.*/*[.]android.js |
| 4 | + |
| 5 | +; Ignore unexpected extra "@providesModule" |
| 6 | +.*/node_modules/.*/node_modules/fbjs/.* |
| 7 | + |
| 8 | +; Ignore duplicate module providers |
| 9 | +; For RN Apps installed via npm, "Libraries" folder is inside |
| 10 | +; "node_modules/react-native" but in the source repo it is in the root |
| 11 | +.*/Libraries/react-native/React.js |
| 12 | + |
| 13 | +; Ignore polyfills |
| 14 | +.*/Libraries/polyfills/.* |
| 15 | + |
| 16 | +.*/examples/.* |
| 17 | +[include] |
| 18 | + |
| 19 | +[libs] |
| 20 | +node_modules/react-native/Libraries/react-native/react-native-interface.js |
| 21 | +node_modules/react-native/flow/ |
| 22 | +node_modules/react-native/flow-github/ |
| 23 | + |
| 24 | +[options] |
| 25 | +emoji=true |
| 26 | + |
| 27 | +module.system=haste |
| 28 | +module.system.haste.use_name_reducers=true |
| 29 | +# get basename |
| 30 | +module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' |
| 31 | +# strip .js or .js.flow suffix |
| 32 | +module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' |
| 33 | +# strip .ios suffix |
| 34 | +module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' |
| 35 | +module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' |
| 36 | +module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' |
| 37 | +module.system.haste.paths.blacklist=.*/__tests__/.* |
| 38 | +module.system.haste.paths.blacklist=.*/__mocks__/.* |
| 39 | +module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.* |
| 40 | +module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.* |
| 41 | + |
| 42 | +munge_underscores=true |
| 43 | + |
| 44 | +suppress_type=$FlowIssue |
| 45 | +suppress_type=$FlowFixMe |
| 46 | +suppress_type=$FlowFixMeProps |
| 47 | +suppress_type=$FlowFixMeState |
| 48 | + |
| 49 | +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) |
| 50 | +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ |
| 51 | +suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy |
| 52 | +suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError |
0 commit comments