Skip to content

Commit 988efaf

Browse files
committed
Disable rule from tslint.json because tslint is no longer compatible with TypeScript 5.x:
The 'no-shadowed-variable' rule threw an error in 'C:/Git/rushstack/build-tests/heft-typescript-composite-test/src/indexA.ts': TypeError: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead. at C:\Git\rushstack\common\temp\node_modules\.pnpm\[email protected]\node_modules\typescript\lib\typescript.js:172041:13 at IdentifierObject.<anonymous> (C:\Git\rushstack\common\temp\node_modules\.pnpm\[email protected]\node_modules\typescript\lib\typescript.js:172071:7) at Object.isThisParameter (C:\Git\rushstack\common\temp\node_modules\.pnpm\[email protected][email protected]\node_modules\tsutils\util\util.js:36:79) at cb (C:\Git\rushstack\common\temp\node_modules\.pnpm\[email protected][email protected]\node_modules\tslint\lib\rules\noShadowedVariableRule.js:207:36)
1 parent 68a7901 commit 988efaf

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

build-tests/heft-typescript-composite-test/tslint.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
"no-inferrable-types": false,
5656
"no-internal-module": true,
5757
"no-null-keyword": true,
58-
"no-shadowed-variable": true,
58+
59+
// This rule throws a DeprecationError exception with TypeScript 5.3.x
60+
// "no-shadowed-variable": true,
61+
5962
"no-string-literal": true,
6063
"no-switch-case-fall-through": true,
6164
"no-trailing-whitespace": true,

build-tests/heft-webpack4-everything-test/tslint.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
"no-inferrable-types": false,
5656
"no-internal-module": true,
5757
"no-null-keyword": true,
58-
"no-shadowed-variable": true,
58+
59+
// This rule throws a DeprecationError exception with TypeScript 5.3.x
60+
// "no-shadowed-variable": true,
61+
5962
"no-string-literal": true,
6063
"no-switch-case-fall-through": true,
6164
"no-trailing-whitespace": true,

build-tests/heft-webpack5-everything-test/tslint.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
"no-inferrable-types": false,
5656
"no-internal-module": true,
5757
"no-null-keyword": true,
58-
"no-shadowed-variable": true,
58+
59+
// This rule throws a DeprecationError exception with TypeScript 5.3.x
60+
// "no-shadowed-variable": true,
61+
5962
"no-string-literal": true,
6063
"no-switch-case-fall-through": true,
6164
"no-trailing-whitespace": true,

0 commit comments

Comments
 (0)