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