Skip to content

Commit

Permalink
clean: remove all Flow deps, scripts, config, CI, etc
Browse files Browse the repository at this point in the history
- remove Flow dep and .flowconfig
- remove Flow scripts from package.json and ci.yml
- remove Babel config and Babel plugin

- ESLint plugin is required by eslint-plugin-babel, so cannot be removed
  • Loading branch information
agilgur5 committed Mar 30, 2022
1 parent 48ff43d commit 88babeb
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 75 deletions.
13 changes: 0 additions & 13 deletions .flowconfig

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:
run: yarn install
- name: Lint
run: yarn lint
- name: Flow
run: yarn flow
- name: TSCheck
run: yarn tscheck
- name: Check compat-data
Expand Down
8 changes: 0 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ $ yarn lint

#### Type-check

To run Flow type-checking, run:

```sh
$ yarn flow
```

To run TypeScript type-checking, run:

```sh
$ yarn tscheck
```
Expand Down
1 change: 0 additions & 1 deletion babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"sourceType": "unambiguous",
"presets": [
["@babel/preset-env", { "loose": true }],
"@babel/preset-flow",
"@babel/preset-typescript"
],
"plugins": ["./scripts/babel-plugin-remove-create-require"],
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
"build-es-shims-data": "./scripts/download-compat-table.sh && node ./scripts/build-es-shims-data",
"clean": "rimraf packages/*/lib packages/*/esm",
"clean-all": "yarn clean && rimraf packages/*/node_modules node_modules",
"flow": "flow check --strip-root",
"lint": "eslint packages '*.{js,ts}' --ext .js,.ts --format=codeframe",
"publish": "yarn clean && NODE_ENV=production yarn build && yarn validate && lerna publish from-git",
"test": "jest && yarn test:esm",
"test:esm": "node test/esm/index.mjs",
"tscheck": "yarn tsc",
"validate": "yarn lint && yarn flow && yarn tscheck && yarn test",
"validate": "yarn lint && yarn tscheck && yarn test",
"watch": "gulp watch"
},
"devDependencies": {
Expand All @@ -24,7 +23,6 @@
"@babel/eslint-plugin-development": "^7.17.7",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-flow": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.17.8",
"@rollup/plugin-babel": "^5.3.0",
Expand All @@ -42,7 +40,6 @@
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-prettier": "^3.1.0",
"fancy-log": "^1.3.3",
"flow-bin": "^0.107.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-newer": "^1.0.0",
Expand Down
47 changes: 0 additions & 47 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -735,17 +735,6 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-syntax-flow@npm:^7.16.7":
version: 7.16.7
resolution: "@babel/plugin-syntax-flow@npm:7.16.7"
dependencies:
"@babel/helper-plugin-utils": ^7.16.7
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: b1ab0bd9b78e4aa5fb48714d6514f3d08d72693807c6044a5be4f301a9bb677b5648fbdae11c8bc93923da6b320a1898560c307933021bdb75ee39e577ed74ee
languageName: node
linkType: hard

"@babel/plugin-syntax-json-strings@npm:^7.8.3":
version: 7.8.3
resolution: "@babel/plugin-syntax-json-strings@npm:7.8.3"
Expand Down Expand Up @@ -977,18 +966,6 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-transform-flow-strip-types@npm:^7.16.7":
version: 7.16.7
resolution: "@babel/plugin-transform-flow-strip-types@npm:7.16.7"
dependencies:
"@babel/helper-plugin-utils": ^7.16.7
"@babel/plugin-syntax-flow": ^7.16.7
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 4b4801c91d805d95957781e537f88e9f34c7f8a4c262c4d230af2ab7a920889c542860e505149a856d4c16916ffb02df4f3af161733adeedb7671555d1510bba
languageName: node
linkType: hard

"@babel/plugin-transform-for-of@npm:^7.16.7":
version: 7.16.7
resolution: "@babel/plugin-transform-for-of@npm:7.16.7"
Expand Down Expand Up @@ -1359,19 +1336,6 @@ __metadata:
languageName: node
linkType: hard

"@babel/preset-flow@npm:^7.16.7":
version: 7.16.7
resolution: "@babel/preset-flow@npm:7.16.7"
dependencies:
"@babel/helper-plugin-utils": ^7.16.7
"@babel/helper-validator-option": ^7.16.7
"@babel/plugin-transform-flow-strip-types": ^7.16.7
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: b73c743a6bdfb51fe907adbc425a82469145ea15f32b43096804e28ba30921c4ac3199f86e11d1cefbce95c3a5404aaf3534152f5a12358c57303c05dfc51b4f
languageName: node
linkType: hard

"@babel/preset-modules@npm:^0.1.5":
version: 0.1.5
resolution: "@babel/preset-modules@npm:0.1.5"
Expand Down Expand Up @@ -4164,7 +4128,6 @@ __metadata:
"@babel/eslint-plugin-development": ^7.17.7
"@babel/plugin-transform-runtime": ^7.17.0
"@babel/preset-env": ^7.16.11
"@babel/preset-flow": ^7.16.7
"@babel/preset-typescript": ^7.16.7
"@babel/runtime": ^7.17.8
"@rollup/plugin-babel": ^5.3.0
Expand All @@ -4182,7 +4145,6 @@ __metadata:
eslint-plugin-import: ^2.17.2
eslint-plugin-prettier: ^3.1.0
fancy-log: ^1.3.3
flow-bin: ^0.107.0
gulp: ^4.0.2
gulp-babel: ^8.0.0
gulp-newer: ^1.0.0
Expand Down Expand Up @@ -6868,15 +6830,6 @@ __metadata:
languageName: node
linkType: hard

"flow-bin@npm:^0.107.0":
version: 0.107.0
resolution: "flow-bin@npm:0.107.0"
bin:
flow: cli.js
checksum: 31e9fa3c81ceeb102a2269385e5d7c64d4040adb152ddeded108f5b8d47401cd78fe503087061b8a74ef34b2b09ed00cd87a923b2ffe5dcbbd9b9164e3466618
languageName: node
linkType: hard

"flush-write-stream@npm:^1.0.0, flush-write-stream@npm:^1.0.2":
version: 1.1.1
resolution: "flush-write-stream@npm:1.1.1"
Expand Down

0 comments on commit 88babeb

Please sign in to comment.