diff options
author | Ryan Cumming <[email protected]> | 2019-06-29 09:00:22 +0100 |
---|---|---|
committer | Ryan Cumming <[email protected]> | 2019-06-29 09:00:22 +0100 |
commit | c8fc00258df1652d95e7ccfea99bc9fec2a4bb5f (patch) | |
tree | 53ace26059485e70be34b6d4b7939aad304f282a /editors | |
parent | 0e1912de528b5092c10eedaf94c43c67d5f86f1a (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')
-rw-r--r-- | editors/code/src/config.ts | 1 | ||||
-rw-r--r-- | editors/code/tsconfig.json | 3 |
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 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | 2 | ||
3 | import { strict } from 'assert'; | ||
4 | import { Server } from './server'; | 3 | import { Server } from './server'; |
5 | 4 | ||
6 | const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG; | 5 | const 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 | } |