diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-06-29 10:12:05 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-06-29 10:12:05 +0100 |
commit | 64f71dd3fff7b902656a2c2465a1b5071b2b1903 (patch) | |
tree | 53ace26059485e70be34b6d4b7939aad304f282a | |
parent | 0e1912de528b5092c10eedaf94c43c67d5f86f1a (diff) | |
parent | c8fc00258df1652d95e7ccfea99bc9fec2a4bb5f (diff) |
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]>
-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 | } |