mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
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.
This commit is contained in:
parent
0e1912de52
commit
c8fc00258d
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
|
|
||||||
import { strict } from 'assert';
|
|
||||||
import { Server } from './server';
|
import { Server } from './server';
|
||||||
|
|
||||||
const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG;
|
const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG;
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
"lib": ["es6"],
|
"lib": ["es6"],
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"strict": true
|
"strict": true,
|
||||||
|
"noUnusedLocals": true
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", ".vscode-test"]
|
"exclude": ["node_modules", ".vscode-test"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue