浏览代码

chore(Deps) update Babel and eslint to their latest versions

master
Saúl Ibarra Corretgé 3 年前
父节点
当前提交
0aba61d5c6
共有 4 个文件被更改,包括 5314 次插入8659 次删除
  1. 5283
    8629
      package-lock.json
  2. 15
    20
      package.json
  3. 11
    0
      patches/eslint-plugin-flowtype+8.0.3.patch
  4. 5
    10
      webpack.config.js

+ 5283
- 8629
package-lock.json
文件差异内容过多而无法显示
查看文件


+ 15
- 20
package.json 查看文件

@@ -123,30 +123,25 @@
123 123
     "zxcvbn": "4.4.2"
124 124
   },
125 125
   "devDependencies": {
126
-    "@babel/core": "7.9.0",
127
-    "@babel/plugin-proposal-class-properties": "7.1.0",
128
-    "@babel/plugin-proposal-export-default-from": "7.0.0",
129
-    "@babel/plugin-proposal-export-namespace-from": "7.0.0",
130
-    "@babel/plugin-proposal-nullish-coalescing-operator": "7.4.4",
131
-    "@babel/plugin-proposal-optional-chaining": "7.2.0",
132
-    "@babel/plugin-transform-flow-strip-types": "7.0.0",
133
-    "@babel/preset-env": "7.1.0",
134
-    "@babel/preset-flow": "7.0.0",
135
-    "@babel/preset-react": "7.0.0",
136
-    "@babel/runtime": "7.15.3",
137
-    "babel-eslint": "10.0.1",
138
-    "babel-loader": "8.0.4",
126
+    "@babel/core": "7.16.0",
127
+    "@babel/eslint-parser": "7.16.0",
128
+    "@babel/plugin-proposal-export-default-from": "7.16.0",
129
+    "@babel/preset-env": "7.16.0",
130
+    "@babel/preset-flow": "7.16.0",
131
+    "@babel/preset-react": "7.16.0",
132
+    "@babel/runtime": "7.16.0",
133
+    "babel-loader": "8.2.3",
139 134
     "babel-plugin-optional-require": "0.3.1",
140 135
     "circular-dependency-plugin": "5.2.0",
141 136
     "clean-css-cli": "4.3.0",
142 137
     "css-loader": "3.6.0",
143
-    "eslint": "5.6.1",
144
-    "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#2.0.0",
145
-    "eslint-plugin-flowtype": "2.50.3",
146
-    "eslint-plugin-import": "2.20.2",
147
-    "eslint-plugin-jsdoc": "3.8.0",
148
-    "eslint-plugin-react": "7.11.1",
149
-    "eslint-plugin-react-native": "3.3.0",
138
+    "eslint": "8.1.0",
139
+    "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#a19c9a76ca17e6f468ae5a8097001a6e7f0fee01",
140
+    "eslint-plugin-flowtype": "8.0.3",
141
+    "eslint-plugin-import": "2.25.2",
142
+    "eslint-plugin-jsdoc": "37.0.3",
143
+    "eslint-plugin-react": "7.26.1",
144
+    "eslint-plugin-react-native": "3.11.0",
150 145
     "expose-loader": "3.0.0",
151 146
     "flow-bin": "0.104.0",
152 147
     "imports-loader": "0.7.1",

+ 11
- 0
patches/eslint-plugin-flowtype+8.0.3.patch 查看文件

@@ -0,0 +1,11 @@
1
+diff --git a/node_modules/eslint-plugin-flowtype/dist/configs/recommended.json b/node_modules/eslint-plugin-flowtype/dist/configs/recommended.json
2
+index 90a0d69..2ad7d68 100644
3
+--- a/node_modules/eslint-plugin-flowtype/dist/configs/recommended.json
4
++++ b/node_modules/eslint-plugin-flowtype/dist/configs/recommended.json
5
+@@ -1,5 +1,5 @@
6
+ {
7
+-  "parser": "@babel/eslint",
8
++  "parser": "@babel/eslint-parser",
9
+   "parserOptions": {
10
+     "babelOptions": {
11
+       "plugins": [

+ 5
- 10
webpack.config.js 查看文件

@@ -113,12 +113,7 @@ function getConfig(options = {}) {
113 113
                     // presets when lib-jitsi-meet, for example, is npm linked in
114 114
                     // jitsi-meet.
115 115
                     plugins: [
116
-                        require.resolve('@babel/plugin-transform-flow-strip-types'),
117
-                        require.resolve('@babel/plugin-proposal-class-properties'),
118
-                        require.resolve('@babel/plugin-proposal-export-default-from'),
119
-                        require.resolve('@babel/plugin-proposal-export-namespace-from'),
120
-                        require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'),
121
-                        require.resolve('@babel/plugin-proposal-optional-chaining')
116
+                        require.resolve('@babel/plugin-proposal-export-default-from')
122 117
                     ],
123 118
                     presets: [
124 119
                         [
@@ -133,10 +128,10 @@ function getConfig(options = {}) {
133 128
                                 // done unnecessarily. For browsers not specified
134 129
                                 // here, the ES2015+ profile will be used.
135 130
                                 targets: {
136
-                                    chrome: 58,
137
-                                    electron: 2,
138
-                                    firefox: 54,
139
-                                    safari: 11
131
+                                    chrome: 80,
132
+                                    electron: 10,
133
+                                    firefox: 68,
134
+                                    safari: 14
140 135
                                 }
141 136
 
142 137
                             }

正在加载...
取消
保存