Skip to content

Commit c8fc002

Browse files
committed
Add noUnusedLocals to VsCode tsconfig
`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.
1 parent 0e1912d commit c8fc002

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)