Skip to content

Commit f429699

Browse files
committed
- [dependencies][android] remove all Firebase SDKs in favour of Firebase BoM
- [android] upgrade to Android X - [android] upgrade gradle wrapper to v5.4.1 - [android][ios][tests] remove manual packages & enable auto-linking - [tests][internal] upgrade tests project to RN 60 - [ios] temporarily remove framework support in pods - broken in RN 60 - see facebook/react-native#25349 - [linting] switch to use rn community linting rules
1 parent 3f98c78 commit f429699

File tree

277 files changed

+4573
-16379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+4573
-16379
lines changed

.eslintrc

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
{
22
"root": true,
3-
"extends": ["airbnb", "plugin:prettier/recommended", "prettier/flowtype", "prettier/react"],
4-
"parser": "babel-eslint",
5-
"plugins": ["flowtype", "prettier"],
3+
"extends": "@react-native-community",
64
"env": {
75
"es6": true,
86
"node": true,
97
"shelljs": true,
108
"jest": true
119
},
10+
"settings": {
11+
"react": {
12+
"version": "16.8.6"
13+
}
14+
},
1215
"rules": {
16+
"jest/no-identical-title": 0,
17+
"eslint-comments/no-unlimited-disable": 0,
1318
"no-new": 0,
1419
"no-continue": 0,
1520
"no-extend-native": 0,
@@ -19,16 +24,19 @@
1924
"no-console": 1,
2025
"no-plusplus": 0,
2126
"no-undef": 0,
27+
"no-catch-shadow": 0,
2228
"no-underscore-dangle": "off",
2329
"no-use-before-define": 0,
2430
"react/forbid-prop-types": "warn",
2531
"react/jsx-filename-extension": ["off", { "extensions": [".js", ".jsx"] }],
26-
"import/no-cycle": 1,
2732
"import/no-unresolved": 0
2833
},
2934
"globals": {
3035
"__DEV__": true,
3136
"__RNFB__": true,
37+
"firebase": true,
38+
"should": true,
39+
"Utils": true,
3240
"window": true
3341
}
3442
}

.flowconfig

+69-10
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,105 @@
11
[ignore]
2-
; Ignore metro
3-
.*/node_modules/metro/.*
2+
; We fork some components by platform
3+
.*/*[.]android.js
44

5-
# Ignore tests project
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+
node_modules/react-native/Libraries/react-native/React.js
15+
16+
; Ignore polyfills
17+
node_modules/react-native/Libraries/polyfills/.*
18+
19+
; These should not be required directly
20+
; require from fbjs/lib instead: require('fbjs/lib/warning')
21+
node_modules/warning/.*
22+
23+
; Flow doesn't support platforms
24+
.*/Libraries/Utilities/HMRLoadingView.js
25+
26+
# Ignore tests project
627
.*/tests/.*
728
.*/packages/template/.*
829

30+
[untyped]
31+
.*/node_modules/@react-native-community/cli/.*/.*
32+
933
[include]
1034
packages/**/lib/*.js.flow
1135
packages/*-types/*.js.flow
1236

13-
[lints]
37+
[libs]
38+
node_modules/react-native/Libraries/react-native/react-native-interface.js
39+
node_modules/react-native/flow/
1440

1541
[options]
1642
emoji=true
43+
1744
esproposal.optional_chaining=enable
1845
esproposal.nullish_coalescing=enable
1946

47+
module.file_ext=.js
48+
module.file_ext=.json
49+
module.file_ext=.ios.js
50+
2051
module.system=haste
2152
module.system.haste.use_name_reducers=true
53+
# get basename
2254
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
55+
# strip .js or .js.flow suffix
2356
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
57+
# strip .ios suffix
58+
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
59+
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
60+
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
2461
module.system.haste.paths.blacklist=.*/__tests__/.*
2562
module.system.haste.paths.blacklist=.*/__mocks__/.*
26-
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
2763
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
64+
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
65+
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
66+
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
67+
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
2868

2969
munge_underscores=true
3070

3171
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'
3272

33-
module.file_ext=.js
34-
3573
suppress_type=$FlowIssue
3674
suppress_type=$FlowFixMe
3775
suppress_type=$FlowFixMeProps
3876
suppress_type=$FlowFixMeState
3977

40-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
41-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
42-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
78+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
79+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
4380
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
4481

82+
[lints]
83+
sketchy-null-number=warn
84+
sketchy-null-mixed=warn
85+
sketchy-number=warn
86+
untyped-type-import=warn
87+
nonstrict-import=warn
88+
deprecated-type=warn
89+
unsafe-getters-setters=warn
90+
inexact-spread=warn
91+
unnecessary-invariant=warn
92+
signature-verification-failure=warn
93+
deprecated-utility=error
94+
95+
[strict]
96+
deprecated-type
97+
nonstrict-import
98+
sketchy-null
99+
unclear-type
100+
unsafe-getters-setters
101+
untyped-import
102+
untyped-type-import
103+
45104
[version]
46105
^0.100.0

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.yarnrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--install.no-lockfile true

0 commit comments

Comments
 (0)