Browse Source

feat(flow) drop Flow integration

We are not actually using it here.
release-8443
Saúl Ibarra Corretgé 4 years ago
parent
commit
f005d57dcf
6 changed files with 5 additions and 94 deletions
  1. 0
    1
      .eslintignore
  2. 0
    32
      .flowconfig
  3. 0
    6
      flow-typed/npm/flow-bin_v0.x.x.js
  4. 2
    46
      package-lock.json
  5. 2
    6
      package.json
  6. 1
    3
      webpack-shared-config.js

+ 0
- 1
.eslintignore View File

@@ -4,7 +4,6 @@ lib-jitsi-meet.*
4 4
 # Third-party source code which we (1) do not want to modify or (2) try to
5 5
 # modify as little as possible.
6 6
 doc/example/libs/*
7
-flow-typed/*
8 7
 
9 8
 # ESLint will by default ignore its own configuration file. However, there does
10 9
 # not seem to be a reason why we will want to risk being inconsistent with our

+ 0
- 32
.flowconfig View File

@@ -1,32 +0,0 @@
1
-; XXX The origin of the source code of this .flowconfig file is the jitsi-meet
2
-; project. As the NPM package jitsi-meet builds the NPM package lib-jitsi-meet
3
-; and jitsi-meet's react-native requires specific .flowconfig contents, it is
4
-; mandatory to keep the .flowconfig files of jitsi-meet and lib-jitsi-meet in
5
-; sync (e.g. the flow-bin version).
6
-;
7
-[ignore]
8
-.*/\.git/.*
9
-
10
-[include]
11
-
12
-[libs]
13
-
14
-[options]
15
-emoji=true
16
-
17
-module.system=haste
18
-
19
-munge_underscores=true
20
-
21
-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'
22
-
23
-suppress_type=$FlowIssue
24
-suppress_type=$FlowFixMe
25
-
26
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
27
-suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
28
-
29
-suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
30
-
31
-[version]
32
-^0.104.0

+ 0
- 6
flow-typed/npm/flow-bin_v0.x.x.js View File

@@ -1,6 +0,0 @@
1
-// flow-typed signature: 6a5610678d4b01e13bbfbbc62bdaf583
2
-// flow-typed version: 3817bc6980/flow-bin_v0.x.x/flow_>=v0.25.x
3
-
4
-declare module "flow-bin" {
5
-  declare module.exports: string;
6
-}

+ 2
- 46
package-lock.json View File

@@ -696,15 +696,6 @@
696 696
         "@babel/helper-plugin-utils": "^7.0.0"
697 697
       }
698 698
     },
699
-    "@babel/plugin-syntax-flow": {
700
-      "version": "7.0.0",
701
-      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0.tgz",
702
-      "integrity": "sha512-zGcuZWiWWDa5qTZ6iAnpG0fnX/GOu49pGR5PFvkQ9GmKNaSphXQnlNXh/LG20sqWtNrx/eB6krzfEzcwvUyeFA==",
703
-      "dev": true,
704
-      "requires": {
705
-        "@babel/helper-plugin-utils": "^7.0.0"
706
-      }
707
-    },
708 699
     "@babel/plugin-syntax-json-strings": {
709 700
       "version": "7.0.0",
710 701
       "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.0.0.tgz",
@@ -920,16 +911,6 @@
920 911
         "@babel/helper-plugin-utils": "^7.0.0"
921 912
       }
922 913
     },
923
-    "@babel/plugin-transform-flow-strip-types": {
924
-      "version": "7.0.0",
925
-      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.0.0.tgz",
926
-      "integrity": "sha512-WhXUNb4It5a19RsgKKbQPrjmy4yWOY1KynpEbNw7bnd1QTcrT/EIl3MJvnGgpgvrKyKbqX7nUNOJfkpLOnoDKA==",
927
-      "dev": true,
928
-      "requires": {
929
-        "@babel/helper-plugin-utils": "^7.0.0",
930
-        "@babel/plugin-syntax-flow": "^7.0.0"
931
-      }
932
-    },
933 914
     "@babel/plugin-transform-for-of": {
934 915
       "version": "7.0.0",
935 916
       "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0.tgz",
@@ -1224,16 +1205,6 @@
1224 1205
         }
1225 1206
       }
1226 1207
     },
1227
-    "@babel/preset-flow": {
1228
-      "version": "7.0.0",
1229
-      "resolved": "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.0.0.tgz",
1230
-      "integrity": "sha512-bJOHrYOPqJZCkPVbG1Lot2r5OSsB+iUOaxiHdlOeB1yPWS6evswVHwvkDLZ54WTaTRIk89ds0iHmGZSnxlPejQ==",
1231
-      "dev": true,
1232
-      "requires": {
1233
-        "@babel/helper-plugin-utils": "^7.0.0",
1234
-        "@babel/plugin-transform-flow-strip-types": "^7.0.0"
1235
-      }
1236
-    },
1237 1208
     "@babel/template": {
1238 1209
       "version": "7.1.2",
1239 1210
       "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.1.2.tgz",
@@ -3550,8 +3521,8 @@
3550 3521
       }
3551 3522
     },
3552 3523
     "eslint-config-jitsi": {
3553
-      "version": "github:jitsi/eslint-config-jitsi#f292fbc07689eb3dbeb81c074accff25b448b074",
3554
-      "from": "github:jitsi/eslint-config-jitsi#1.0.3",
3524
+      "version": "github:jitsi/eslint-config-jitsi#974ab743dde38bf2207ad4ea5e4e89cfb98517b1",
3525
+      "from": "github:jitsi/eslint-config-jitsi#974ab743dde38bf2207ad4ea5e4e89cfb98517b1",
3555 3526
       "dev": true
3556 3527
     },
3557 3528
     "eslint-import-resolver-node": {
@@ -3591,15 +3562,6 @@
3591 3562
         "pkg-dir": "^2.0.0"
3592 3563
       }
3593 3564
     },
3594
-    "eslint-plugin-flowtype": {
3595
-      "version": "2.50.3",
3596
-      "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz",
3597
-      "integrity": "sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ==",
3598
-      "dev": true,
3599
-      "requires": {
3600
-        "lodash": "^4.17.10"
3601
-      }
3602
-    },
3603 3565
     "eslint-plugin-import": {
3604 3566
       "version": "2.20.2",
3605 3567
       "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.20.2.tgz",
@@ -4269,12 +4231,6 @@
4269 4231
       "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==",
4270 4232
       "dev": true
4271 4233
     },
4272
-    "flow-bin": {
4273
-      "version": "0.104.0",
4274
-      "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.104.0.tgz",
4275
-      "integrity": "sha512-EZXRRmf7m7ET5Lcnwm/I/T8G3d427Bq34vmO3qIlRcPIYloGuVoqRCwjaeezLRDntHkdciagAKbhJ+NTbDjnkw==",
4276
-      "dev": true
4277
-    },
4278 4234
     "flush-write-stream": {
4279 4235
       "version": "1.1.1",
4280 4236
       "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz",

+ 2
- 6
package.json View File

@@ -40,17 +40,13 @@
40 40
     "@babel/plugin-proposal-export-namespace-from": "7.0.0",
41 41
     "@babel/plugin-proposal-nullish-coalescing-operator": "7.13.8",
42 42
     "@babel/plugin-proposal-optional-chaining": "7.2.0",
43
-    "@babel/plugin-transform-flow-strip-types": "7.0.0",
44 43
     "@babel/preset-env": "7.1.0",
45
-    "@babel/preset-flow": "7.0.0",
46 44
     "babel-eslint": "10.0.1",
47 45
     "babel-loader": "8.0.4",
48 46
     "core-js": "2.5.1",
49 47
     "eslint": "5.6.1",
50
-    "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#1.0.3",
51
-    "eslint-plugin-flowtype": "2.50.3",
48
+    "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#974ab743dde38bf2207ad4ea5e4e89cfb98517b1",
52 49
     "eslint-plugin-import": "2.20.2",
53
-    "flow-bin": "0.104.0",
54 50
     "jasmine-core": "3.5.0",
55 51
     "karma": "5.1.1",
56 52
     "karma-chrome-launcher": "3.1.0",
@@ -63,7 +59,7 @@
63 59
     "webpack-cli": "3.3.11"
64 60
   },
65 61
   "scripts": {
66
-    "lint": "eslint . && flow",
62
+    "lint": "eslint .",
67 63
     "postinstall": "webpack -p",
68 64
     "test": "karma start karma.conf.js",
69 65
     "test-watch": "karma start karma.conf.js --no-single-run",

+ 1
- 3
webpack-shared-config.js View File

@@ -52,11 +52,9 @@ module.exports = {
52 52
                                 safari: 11
53 53
                             }
54 54
                         }
55
-                    ],
56
-                    '@babel/preset-flow'
55
+                    ]
57 56
                 ],
58 57
                 plugins: [
59
-                    '@babel/plugin-transform-flow-strip-types',
60 58
                     '@babel/plugin-proposal-class-properties',
61 59
                     '@babel/plugin-proposal-optional-chaining',
62 60
                     '@babel/plugin-proposal-export-namespace-from',

Loading…
Cancel
Save