Skip to content

Commit 9330176

Browse files
authored
refactor: remove unused optional-chaining plugin (#118)
1 parent 2fa901d commit 9330176

File tree

8 files changed

+18
-32
lines changed

8 files changed

+18
-32
lines changed

.changeset/loud-onions-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"babel-preset-proposal-typescript": patch
3+
---
4+
5+
refactor: remove unused optional-chaining plugin

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,7 @@ jobs:
5050
EFF_NO_LINK_RULES: true
5151
PARSER_NO_WATCH: true
5252

53-
- name: Code Checks
54-
if: matrix.node == 14 # only report codechecks once per commit
55-
run: |
56-
yarn global add @codechecks/client @codechecks/build-size-watcher
57-
codechecks
58-
env:
59-
CI: 'true'
60-
CC_SECRET: ${{ secrets.CC_SECRET }}
61-
6253
- name: Codecov
63-
if: matrix.node == 14 # only report coverage once per commit
6454
run: |
6555
yarn global add codecov codacy-coverage
6656
codecov

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage
2+
lib
3+
CHANGELOG.md

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

babel.config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,4 @@ module.exports = {
1111
},
1212
],
1313
],
14-
plugins: [
15-
[
16-
'@babel/plugin-proposal-decorators',
17-
{
18-
legacy: true,
19-
},
20-
],
21-
],
2214
}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@babel/plugin-proposal-function-bind": "^7.12.1",
5252
"@babel/plugin-proposal-function-sent": "^7.12.1",
5353
"@babel/plugin-proposal-json-strings": "^7.12.1",
54-
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
5554
"@babel/plugin-proposal-partial-application": "^7.12.1",
5655
"@babel/plugin-proposal-pipeline-operator": "^7.12.1",
5756
"@babel/plugin-proposal-private-methods": "^7.12.1",
@@ -69,13 +68,13 @@
6968
"@types/babel__core": "^7.1.14",
7069
"@types/jest": "^26.0.23",
7170
"babel-jest": "^26.6.3",
72-
"clean-publish": "^2.1.1",
71+
"clean-publish": "^2.2.0",
7372
"npm-run-all": "^4.1.5",
7473
"typescript": "^4.2.4",
7574
"yarn-deduplicate": "^3.1.0"
7675
},
7776
"resolutions": {
7877
"babel-preset-proposal-typescript": "link:.",
79-
"prettier": "^2.2.1"
78+
"prettier": "^2.3.0"
8079
}
8180
}

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import proposalDoExpressions from '@babel/plugin-proposal-do-expressions'
66
import proposalFunctionBind from '@babel/plugin-proposal-function-bind'
77
import proposalFunctionSent from '@babel/plugin-proposal-function-sent'
88
import proposalJsonStrings from '@babel/plugin-proposal-json-strings'
9-
import proposalOptionalChaining from '@babel/plugin-proposal-optional-chaining'
109
import proposalPartialApplication from '@babel/plugin-proposal-partial-application'
1110
import proposalPipelineOperator from '@babel/plugin-proposal-pipeline-operator'
1211
import proposalPrivateMethods from '@babel/plugin-proposal-private-methods'
@@ -71,7 +70,6 @@ export default declare(
7170
proposalFunctionBind,
7271
proposalFunctionSent,
7372
proposalJsonStrings,
74-
proposalOptionalChaining,
7573
proposalPartialApplication,
7674
[
7775
proposalPipelineOperator,

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3398,10 +3398,10 @@ clean-css@^4.1.11:
33983398
dependencies:
33993399
source-map "~0.6.0"
34003400

3401-
clean-publish@^2.1.1:
3402-
version "2.1.1"
3403-
resolved "https://registry.yarnpkg.com/clean-publish/-/clean-publish-2.1.1.tgz#2286cbcf587d2eb8bac56a771854539c30f6f035"
3404-
integrity sha512-IO0aLHoeSK23rIJ7Epvb/3wAstsehvJaPi5cv6zQrvmpBHjJ0AaLzbiDlPfxSWBRCQQ8S6UcHk65IMiIyAWI6Q==
3401+
clean-publish@^2.2.0:
3402+
version "2.2.0"
3403+
resolved "https://registry.yarnpkg.com/clean-publish/-/clean-publish-2.2.0.tgz#3d249934128757e457dc060511a056d32487f38d"
3404+
integrity sha512-U+/Y5YXbxnqWlh8y/toKSEGbMvIvsgfkfJ7yK0v0uQ1mz07lNNSxceY7XaFweEw8LFQo8Al3H7SuQHXbf5Xw8g==
34053405
dependencies:
34063406
cross-spawn "^7.0.3"
34073407
fs-extra "^9.1.0"
@@ -8106,10 +8106,10 @@ prettier-plugin-toml@^0.3.1:
81068106
"@toml-tools/parser" "^0.3.1"
81078107
prettier "^1.16.0"
81088108

8109-
prettier@>=1.10, prettier@^1.16.0, prettier@^1.18.2, prettier@^1.19.1, prettier@^2.2.0, prettier@^2.2.1:
8110-
version "2.2.1"
8111-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
8112-
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
8109+
prettier@>=1.10, prettier@^1.16.0, prettier@^1.18.2, prettier@^1.19.1, prettier@^2.2.0, prettier@^2.3.0:
8110+
version "2.3.0"
8111+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
8112+
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
81138113

81148114
pretty-format@^26.0.0, pretty-format@^26.6.2:
81158115
version "26.6.2"

0 commit comments

Comments
 (0)