Skip to content

Commit

Permalink
bump typescript and linter versions (#15086)
Browse files Browse the repository at this point in the history
* bump typescript and linter versions

* check uncommitted files after lint

* Update .github/workflows/ci.yml
  • Loading branch information
JLHwung committed Oct 28, 2022
1 parent 078854a commit 8636605
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 72 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
node ./scripts/pack-script.js
- name: Ensure cwd does not contain uncommitted changes
run: |
node ./scripts/assert-dir-git-clean.js
node ./scripts/assert-dir-git-clean.js build
- uses: actions/upload-artifact@v3
with:
name: babel-artifact
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
STRIP_BABEL_8_FLAG: true
- name: Ensure cwd does not contain uncommitted changes
run: |
node ./scripts/assert-dir-git-clean.js
node ./scripts/assert-dir-git-clean.js build
lint:
name: Lint
Expand All @@ -181,6 +181,9 @@ jobs:
name: babel-artifact
- name: Lint
run: make -j tscheck lint-ci
- name: Ensure cwd does not contain uncommitted changes
run: |
node ./scripts/assert-dir-git-clean.js code-quality
test:
name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@types/node": "^16.7.13",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@types/node": "^18.11.7",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"babel-plugin-transform-charcodes": "^0.2.0",
"c8": "^7.12.0",
"chalk": "^5.0.0",
Expand Down
4 changes: 3 additions & 1 deletion scripts/assert-dir-git-clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import { execSync } from "child_process";

const fixCommand = `make ${process.argv[2]}`;

if (execSync("git status --porcelain=v1", { encoding: "utf8" })) {
console.log(
'Please re-run "make build" and checkout the following changes to git'
`Please re-run "${fixCommand}" and checkout the following changes to git`
);
execSync("git status", { stdio: "inherit" });
// eslint-disable-next-line no-process-exit
Expand Down
133 changes: 67 additions & 66 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4562,10 +4562,10 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*, @types/node@npm:^16.7.13":
version: 16.7.13
resolution: "@types/node@npm:16.7.13"
checksum: 15dc28aa44674d3f49dcca4a6523b6ab1ef9bbea5c659057bec13153e1873718d6b62ab0ea57a3d57ee37f0f1136ae30e3ea503df43b0afa3ae437c8750be7f5
"@types/node@npm:*, @types/node@npm:^18.11.7":
version: 18.11.7
resolution: "@types/node@npm:18.11.7"
checksum: 69d630825cf6fbf580d08d76a4d4836ef8c34ed4fe0842221ade87d275f517099cbfabe8e22397208e564bd24926db97699ab9db5c091383269a432b336665e2
languageName: node
linkType: hard

Expand Down Expand Up @@ -4599,10 +4599,10 @@ __metadata:
languageName: node
linkType: hard

"@types/semver@npm:^7.3.4":
version: 7.3.4
resolution: "@types/semver@npm:7.3.4"
checksum: 577dc7f607fbf46cf185f61ba726e4cfecea41c4b17e55069e70a64b6cd92658f8286aa075a607303455658e87ed045d3d14c32a513c0eff381d64aecd7b72a7
"@types/semver@npm:^7.3.12, @types/semver@npm:^7.3.4":
version: 7.3.13
resolution: "@types/semver@npm:7.3.13"
checksum: 00c0724d54757c2f4bc60b5032fe91cda6410e48689633d5f35ece8a0a66445e3e57fa1d6e07eb780f792e82ac542948ec4d0b76eb3484297b79bd18b8cf1cb0
languageName: node
linkType: hard

Expand Down Expand Up @@ -4636,15 +4636,14 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^5.36.1":
version: 5.36.1
resolution: "@typescript-eslint/eslint-plugin@npm:5.36.1"
"@typescript-eslint/eslint-plugin@npm:^5.41.0":
version: 5.41.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.41.0"
dependencies:
"@typescript-eslint/scope-manager": 5.36.1
"@typescript-eslint/type-utils": 5.36.1
"@typescript-eslint/utils": 5.36.1
"@typescript-eslint/scope-manager": 5.41.0
"@typescript-eslint/type-utils": 5.41.0
"@typescript-eslint/utils": 5.41.0
debug: ^4.3.4
functional-red-black-tree: ^1.0.1
ignore: ^5.2.0
regexpp: ^3.2.0
semver: ^7.3.7
Expand All @@ -4655,67 +4654,67 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: a4c555688d840c3ff0d3d71ceca583291e206cc523eade45c56fb8e1c8af84ae50ef8d344cdf8e3f9c38f430bc03c95eb8d49870094e0e5b57e0fa3e61c0ec91
checksum: b6f08244059a8e02dbb305e914e6455a2b6bfabe6c0fd355bd3a0a732ed44a503ad47d4beb5f617e29274b5a8b8249d80cf4600babf05d8e35958ff64a546da4
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^5.36.1":
version: 5.36.1
resolution: "@typescript-eslint/parser@npm:5.36.1"
"@typescript-eslint/parser@npm:^5.41.0":
version: 5.41.0
resolution: "@typescript-eslint/parser@npm:5.41.0"
dependencies:
"@typescript-eslint/scope-manager": 5.36.1
"@typescript-eslint/types": 5.36.1
"@typescript-eslint/typescript-estree": 5.36.1
"@typescript-eslint/scope-manager": 5.41.0
"@typescript-eslint/types": 5.41.0
"@typescript-eslint/typescript-estree": 5.41.0
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 0f0f94e56ae1d55b6e7223ce5a2b0c93e5cc082ef2951a2b24ae4b22bb8ffbeb90d2d16682bfa8bc972ba2c7fb4703aedd79b7dbd09bcee397e1ab90d11506d9
checksum: ae005b603218d540dd1c3fd1f84d7f956bfca8b15d2c42115b9fc44437cb73e8284fda62153612a20809449d563edbde968d245b6c9d27b482ad0ebc2a95947f
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:5.36.1":
version: 5.36.1
resolution: "@typescript-eslint/scope-manager@npm:5.36.1"
"@typescript-eslint/scope-manager@npm:5.41.0":
version: 5.41.0
resolution: "@typescript-eslint/scope-manager@npm:5.41.0"
dependencies:
"@typescript-eslint/types": 5.36.1
"@typescript-eslint/visitor-keys": 5.36.1
checksum: c46497226af75baed7458838ec0bfbddf19f8084115d78b915b46a8ceb4c05619ac61da127dfd3c8ee11bc916896d57bf8b9f936b0306ce69658160f910e3ad0
"@typescript-eslint/types": 5.41.0
"@typescript-eslint/visitor-keys": 5.41.0
checksum: f588e7e7e953dfa19632b676f1287a7a4f5e9390282b103b3cf46cc28bb597c1229df2489eb687ab9285674076eb2569b821eac9b3110572d70fd230bdc5d703
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:5.36.1":
version: 5.36.1
resolution: "@typescript-eslint/type-utils@npm:5.36.1"
"@typescript-eslint/type-utils@npm:5.41.0":
version: 5.41.0
resolution: "@typescript-eslint/type-utils@npm:5.41.0"
dependencies:
"@typescript-eslint/typescript-estree": 5.36.1
"@typescript-eslint/utils": 5.36.1
"@typescript-eslint/typescript-estree": 5.41.0
"@typescript-eslint/utils": 5.41.0
debug: ^4.3.4
tsutils: ^3.21.0
peerDependencies:
eslint: "*"
peerDependenciesMeta:
typescript:
optional: true
checksum: d2905289e253a83a9eacbad765cfba03440663086c8beb1b19345b46593c9053fb051ee13d3cc27ccd800fe95ffbf3be2b1273b0f0ac6a59452fc94e6460898b
checksum: c438d4a47f1bbd031245db31c75748a5eac9b7e5d6d3805a914a9b891b03d3d18c7509d2273b1718dcc9c239506a3627e5da34c363d2c22acca2ea64050b5bc4
languageName: node
linkType: hard

"@typescript-eslint/types@npm:5.36.1":
version: 5.36.1
resolution: "@typescript-eslint/types@npm:5.36.1"
checksum: 10c8965c64e16bc6920dc0c62aae2b139062aca945d03df2ad6fe7c299d2faa684621d571f8d9807a67643d4e9fa5217c69d5f538f9936fc757f9df5ded57623
"@typescript-eslint/types@npm:5.41.0":
version: 5.41.0
resolution: "@typescript-eslint/types@npm:5.41.0"
checksum: d7500bcc67b68032ccf19d983a69efa2750f4d82f5cc027090d2686d4e662b3a7b0b5fa55ed90710eca2528867d39964d76c207ac3c6f734505efbe21dccac7d
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:5.36.1":
version: 5.36.1
resolution: "@typescript-eslint/typescript-estree@npm:5.36.1"
"@typescript-eslint/typescript-estree@npm:5.41.0":
version: 5.41.0
resolution: "@typescript-eslint/typescript-estree@npm:5.41.0"
dependencies:
"@typescript-eslint/types": 5.36.1
"@typescript-eslint/visitor-keys": 5.36.1
"@typescript-eslint/types": 5.41.0
"@typescript-eslint/visitor-keys": 5.41.0
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
Expand All @@ -4724,33 +4723,35 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: acaf2938001673918dbbe690a353cf92e2cfabc79f74cd5946e303a8c24eb9c08ae2053dd261810ed0c9c471ebe879f386564c1b01dd2504dc84f4ce5f4dc696
checksum: cfb61b5971108807ad4b1e26e71455a0451e8b5ee06e9ae7d2e45caa8e978f0a3bb58bb877eff42a134d3ab21ad23bf138d2b829c407607e3d1fc616f0f87cc9
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:5.36.1, @typescript-eslint/utils@npm:^5.10.0":
version: 5.36.1
resolution: "@typescript-eslint/utils@npm:5.36.1"
"@typescript-eslint/utils@npm:5.41.0, @typescript-eslint/utils@npm:^5.10.0":
version: 5.41.0
resolution: "@typescript-eslint/utils@npm:5.41.0"
dependencies:
"@types/json-schema": ^7.0.9
"@typescript-eslint/scope-manager": 5.36.1
"@typescript-eslint/types": 5.36.1
"@typescript-eslint/typescript-estree": 5.36.1
"@types/semver": ^7.3.12
"@typescript-eslint/scope-manager": 5.41.0
"@typescript-eslint/types": 5.41.0
"@typescript-eslint/typescript-estree": 5.41.0
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
semver: ^7.3.7
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 77853d526af86ac508d7938916046ed4ad6374c7414981064c5122a2baa96fa234751137f481ac264a07387fd4dcec1cd26b33e29732cc58e855aae77a001d7c
checksum: 293a0de39639983048b7fe203a4191b97cfc3c868866c1e485ec63c6eab9013002e58f0ac23ec7584f71d28390bf2d6c23ee10d6863ea067567e572cd9d75dae
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:5.36.1":
version: 5.36.1
resolution: "@typescript-eslint/visitor-keys@npm:5.36.1"
"@typescript-eslint/visitor-keys@npm:5.41.0":
version: 5.41.0
resolution: "@typescript-eslint/visitor-keys@npm:5.41.0"
dependencies:
"@typescript-eslint/types": 5.36.1
"@typescript-eslint/types": 5.41.0
eslint-visitor-keys: ^3.3.0
checksum: 45ab7c2fd455a8e4beff418bed6c9e7e1f9f66bcaad3bfaed868f97a3f8cfec1fa4faa45948af1a1c32ce573a7b1c6d10427119c257622445b06b488fefd8b49
checksum: ff76694170d77c96d6166a1973ca11b4a6de2051e396fc3581534b3d6f574440e0a3af71f0690dfb2368bb5300a412b363c1795ac1ba1f363b1bc115550808cd
languageName: node
linkType: hard

Expand Down Expand Up @@ -5958,9 +5959,9 @@ __metadata:
"@rollup/plugin-json": ^4.1.0
"@rollup/plugin-node-resolve": ^13.3.0
"@rollup/plugin-replace": ^4.0.0
"@types/node": ^16.7.13
"@typescript-eslint/eslint-plugin": ^5.36.1
"@typescript-eslint/parser": ^5.36.1
"@types/node": ^18.11.7
"@typescript-eslint/eslint-plugin": ^5.41.0
"@typescript-eslint/parser": ^5.41.0
babel-plugin-transform-charcodes: ^0.2.0
c8: ^7.12.0
chalk: ^5.0.0
Expand Down Expand Up @@ -14699,22 +14700,22 @@ fsevents@^1.2.7:
linkType: hard

"typescript@npm:~4.8.3":
version: 4.8.3
resolution: "typescript@npm:4.8.3"
version: 4.8.4
resolution: "typescript@npm:4.8.4"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 8286a5edcaf3d68e65c451aa1e7150ad1cf53ee0813c07ec35b7abdfdb10f355ecaa13c6a226a694ae7a67785fd7eeebf89f845da0b4f7e4a35561ddc459aba0
checksum: 3e4f061658e0c8f36c820802fa809e0fd812b85687a9a2f5430bc3d0368e37d1c9605c3ce9b39df9a05af2ece67b1d844f9f6ea8ff42819f13bcb80f85629af0
languageName: node
linkType: hard

"typescript@patch:typescript@~4.8.3#~builtin<compat/typescript>":
version: 4.8.3
resolution: "typescript@patch:typescript@npm%3A4.8.3#~builtin<compat/typescript>::version=4.8.3&hash=701156"
version: 4.8.4
resolution: "typescript@patch:typescript@npm%3A4.8.4#~builtin<compat/typescript>::version=4.8.4&hash=701156"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 2222d2382fb3146089b1d27ce2b55e9d1f99cc64118f1aba75809b693b856c5d3c324f052f60c75b577947fc538bc1c27bad0eb76cbdba9a63a253489504ba7e
checksum: 301459fc3eb3b1a38fe91bf96d98eb55da88a9cb17b4ef80b4d105d620f4d547ba776cc27b44cc2ef58b66eda23fe0a74142feb5e79a6fb99f54fc018a696afa
languageName: node
linkType: hard

Expand Down

0 comments on commit 8636605

Please sign in to comment.