Skip to content

Commit 64f71dd

Browse files
bors[bot]etaoins
andcommitted
Merge #1455
1455: Add noUnusedLocals to VsCode tsconfig r=matklad a=etaoins `tslint` doesn't catch this because TypeScript has had this check builtin since 2.9. However, it's disabled by default so right now nothing is checking for unused variables. Co-authored-by: Ryan Cumming <[email protected]>
2 parents 0e1912d + c8fc002 commit 64f71dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

editors/code/src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as vscode from 'vscode';
22

3-
import { strict } from 'assert';
43
import { Server } from './server';
54

65
const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG;

editors/code/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"lib": ["es6"],
77
"sourceMap": true,
88
"rootDir": "src",
9-
"strict": true
9+
"strict": true,
10+
"noUnusedLocals": true
1011
},
1112
"exclude": ["node_modules", ".vscode-test"]
1213
}

0 commit comments

Comments
 (0)