Files: f2ead91b3fca7b8ae8d0ba6ce0198301c7fb5da9 / .flowconfig
2268 bytesRaw
1 | [ignore] |
2 | ; We fork some components by platform |
3 | .*/*[.]android.js |
4 | |
5 | ; Ignore "BUCK" generated dirs |
6 | <PROJECT_ROOT>/\.buckd/ |
7 | |
8 | ; Ignore unexpected extra "@providesModule" |
9 | .*/node_modules/.*/node_modules/fbjs/.* |
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 | |
16 | ; Ignore polyfills |
17 | .*/Libraries/polyfills/.* |
18 | |
19 | ; Ignore Metro |
20 | .*/node_modules/metro/.* |
21 | |
22 | [include] |
23 | |
24 | [libs] |
25 | node_modules/react-native/Libraries/react-native/react-native-interface.js |
26 | node_modules/react-native/flow/ |
27 | |
28 | [options] |
29 | emoji=true |
30 | |
31 | esproposal.optional_chaining=enable |
32 | esproposal.nullish_coalescing=enable |
33 | |
34 | module.system=haste |
35 | module.system.haste.use_name_reducers=true |
36 | # get basename |
37 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' |
38 | # strip .js or .js.flow suffix |
39 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' |
40 | # strip .ios suffix |
41 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' |
42 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' |
43 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' |
44 | module.system.haste.paths.blacklist=.*/__tests__/.* |
45 | module.system.haste.paths.blacklist=.*/__mocks__/.* |
46 | module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.* |
47 | module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.* |
48 | |
49 | munge_underscores=true |
50 | |
51 | 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' |
52 | |
53 | module.file_ext=.js |
54 | module.file_ext=.jsx |
55 | module.file_ext=.json |
56 | module.file_ext=.native.js |
57 | |
58 | suppress_type=$FlowIssue |
59 | suppress_type=$FlowFixMe |
60 | suppress_type=$FlowFixMeProps |
61 | suppress_type=$FlowFixMeState |
62 | |
63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) |
64 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ |
65 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy |
66 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError |
67 | |
68 | [version] |
69 | ^0.92.0 |
70 |
Built with git-ssb-web