Skip to content

Commit 3ce9dcc

Browse files
matuanccsongjie@nihaosi.com
andauthored
升级TypeScript,注释babel.config.js两行代码 (#68)
* react-native升级0.63.2 * 恢复babel的eslink * flx删除不需要上传的flowconfig * flx升级TypeScript,注释babel.config.js两行代码 Co-authored-by: songjie@nihaosi.com <songjie@nihaosi.com>
1 parent 635a4b5 commit 3ce9dcc

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: ['module:metro-react-native-babel-preset'],
3-
parser: '@typescript-eslint/parser',
4-
plugins: ['@typescript-eslint'],
3+
// parser: '@typescript-eslint/parser',
4+
// plugins: ['@typescript-eslint'],
55
};

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@babel/runtime": "^7.10.5",
1515
"@types/color": "3.0.1",
16-
"@types/react-native": "0.62.11",
16+
"@types/react-native": "^0.63.2",
1717
"@uiw/icons": "2.4.3",
1818
"color": "3.1.2",
1919
"prop-types": "15.7.2",
@@ -27,10 +27,11 @@
2727
"@react-native-community/masked-view": "0.1.10",
2828
"@react-navigation/native": "5.5.1",
2929
"@react-navigation/stack": "5.4.2",
30-
"@types/jest": "24.9.1",
31-
"@types/react-test-renderer": "16.9.2",
30+
"@types/jest": "^26.0.8",
31+
"@types/react": "^16.9.43",
32+
"@types/react-test-renderer": "^16.9.2",
3233
"@typescript-eslint/eslint-plugin": "2.34.0",
33-
"@typescript-eslint/parser": "2.34.0",
34+
"@typescript-eslint/parser": "^3.7.1",
3435
"babel-jest": "^26.1.0",
3536
"eslint": "^7.5.0",
3637
"jest": "^26.1.0",
@@ -42,7 +43,7 @@
4243
"react-native-safe-area-context": "3.0.2",
4344
"react-native-screens": "2.7.0",
4445
"react-test-renderer": "16.13.1",
45-
"typescript": "3.9.3"
46+
"typescript": "^3.9.7"
4647
},
4748
"jest": {
4849
"preset": "react-native",

0 commit comments

Comments
 (0)