aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorRyan Cumming <[email protected]>2019-06-29 09:00:22 +0100
committerRyan Cumming <[email protected]>2019-06-29 09:00:22 +0100
commitc8fc00258df1652d95e7ccfea99bc9fec2a4bb5f (patch)
tree53ace26059485e70be34b6d4b7939aad304f282a /editors/code
parent0e1912de528b5092c10eedaf94c43c67d5f86f1a (diff)
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.
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/config.ts1
-rw-r--r--editors/code/tsconfig.json3
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index 10e98d753..3f1b482e3 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -1,6 +1,5 @@
1import * as vscode from 'vscode'; 1import * as vscode from 'vscode';
2 2
3import { strict } from 'assert';
4import { Server } from './server'; 3import { Server } from './server';
5 4
6const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG; 5const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG;
diff --git a/editors/code/tsconfig.json b/editors/code/tsconfig.json
index ef93c52b7..9ad2e967b 100644
--- a/editors/code/tsconfig.json
+++ b/editors/code/tsconfig.json
@@ -6,7 +6,8 @@
6 "lib": ["es6"], 6 "lib": ["es6"],
7 "sourceMap": true, 7 "sourceMap": true,
8 "rootDir": "src", 8 "rootDir": "src",
9 "strict": true 9 "strict": true,
10 "noUnusedLocals": true
10 }, 11 },
11 "exclude": ["node_modules", ".vscode-test"] 12 "exclude": ["node_modules", ".vscode-test"]
12} 13}