Skip to content

Commit 15dd2db

Browse files
committed
fix(build): move no-unused-variables to tslint.build.json
In the latest version of tslint, the rule "no-unused-variables" requires type information and therefore cannot be run on the fly from VS Code. This commit move the configuration of "no-unused-variables" from tsling.common.json to tslint.build.json to avoid warnings printed to VS Code console: Warning: The 'no-unused-variable' rule requires type information.
1 parent 34a63d5 commit 15dd2db

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/build/config/tslint.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"rules": {
1010
// These rules find errors related to TypeScript features.
1111

12-
1312
// These rules catch common errors in JS programming or otherwise
1413
// confusing constructs that are prone to producing bugs.
1514

1615
"await-promise": true,
1716
"no-floating-promises": true,
17+
"no-unused-variable": true,
1818
"no-void-expression": [true, "ignore-arrow-function-shorthand"]
1919
}
2020
}

packages/build/config/tslint.common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"no-shadowed-variable": true,
2121
"no-string-throw": true,
2222
"no-unused-expression": true,
23-
"no-unused-variable": true,
2423
"no-var-keyword": true,
2524
"triple-equals": [true, "allow-null-check", "allow-undefined-check"]
2625
}

0 commit comments

Comments
 (0)