Skip to content

Commit f48b262

Browse files
Merge #10688
10688: internal: Type-check TS on CI and also turn off the strict setting `useUnknownInCatchVariables` r=lnicola a=ChayimFriedman2 We don't follow it and I found that turning it on will have little benefit. I'm not sure if we should also type-check when building in launch.json. Co-authored-by: Chayim Refael Friedman <chayimfr@gmail.com>
2 parents c5c11b8 + 36bdb5c commit f48b262

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,8 @@ jobs:
132132
run: npm --prefix ./editors/code test
133133
# working-directory: ./editors/code # does not work: https://github.com/GabrielBB/xvfb-action/issues/8
134134

135+
- run: npm run pretest
136+
working-directory: ./editors/code
137+
135138
- run: npm run package --scripts-prepend-node-path
136139
working-directory: ./editors/code

editors/code/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"watch": "npm run build-base -- --sourcemap --watch",
3333
"lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
3434
"fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
35-
"pretest": "tsc && npm run build",
35+
"pretest": "tsc --noEmit && npm run build",
3636
"test": "node ./out/tests/runTests.js"
3737
},
3838
"dependencies": {

editors/code/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"sourceMap": true,
1010
"rootDir": ".",
1111
"strict": true,
12+
"useUnknownInCatchVariables": false,
1213
"noUnusedLocals": true,
1314
"noUnusedParameters": true,
1415
"noImplicitReturns": true,

0 commit comments

Comments
 (0)