Skip to content

Commit 2eb95ab

Browse files
satya164souhe
authored andcommitted
Deps upgrades + hooks (#39)
* BREAKING: upgrade flow and remove default provider * chore: upgrade all dependencies * feat: add an API with hooks
1 parent dbe3068 commit 2eb95ab

26 files changed

+8691
-5661
lines changed

.babelrc

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
{
22
"presets": [
3-
"./.babelrc.js"
4-
]
5-
}
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
"last 2 versions",
9+
"not ie 11",
10+
"not ie_mob 11",
11+
"not op_mini all",
12+
"not dead"
13+
]
14+
},
15+
"exclude": [
16+
"transform-typeof-symbol",
17+
"es6.object.assign",
18+
"es6.object.keys",
19+
"es6.array.iterator",
20+
"web.dom.iterable"
21+
],
22+
"loose": true
23+
}
24+
],
25+
"@babel/preset-react",
26+
"@babel/preset-flow"
27+
],
28+
"plugins": ["@babel/plugin-proposal-class-properties"]
29+
}

.babelrc.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
examples/
3+
lib/

.eslintrc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"extends": "callstack-io",
3-
"rules": {
4-
"react/forbid-prop-types": 0,
5-
"flowtype/no-weak-types": 0
6-
}
7-
}
2+
'extends': '@callstack/eslint-config',
3+
4+
'rules': { 'flowtype/no-weak-types': 'off' },
5+
}

.flowconfig

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[ignore]
2-
.*/dist/.*
3-
.*/examples/.*
4-
lib/.*
2+
.*/lib/.*
53

64
[include]
75

@@ -10,25 +8,9 @@ lib/.*
108
[options]
119
emoji=true
1210

13-
module.system=haste
14-
1511
munge_underscores=true
1612

17-
module.name_mapper='^expo$' -> 'emptyObject'
18-
module.name_mapper='^react-navigation$' -> 'emptyObject'
19-
20-
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'
21-
22-
suppress_type=$FlowIssue
23-
suppress_type=$FlowFixMe
24-
suppress_type=$FlowFixMeProps
25-
suppress_type=$FlowFixMeState
26-
suppress_type=$FixMe
27-
28-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
29-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
30-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
31-
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
13+
module.name_mapper='^@callstack/react-theme-provider' -> '<PROJECT_ROOT>/src'
3214

3315
[version]
34-
^0.65.0
16+
^0.94.0

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ lib/
77
# VSCode
88
#
99
.vscode/
10-
tsconfig.json
1110
jsconfig.json
1211

1312
# node.js

0 commit comments

Comments
 (0)