You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tslint/README.md
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,22 @@ Integrates the [tslint](https://github.com/palantir/tslint) linter for the TypeS
4
4
Please refer to the tslint [documentation](https://github.com/palantir/tslint) for how to configure the linting rules.
5
5
6
6
# Prerequisites
7
-
The extension requires that tslint is installed either locally or globally.
7
+
The extension requires that the `tslint` and `typescript` modules are installed either locally or globally. The extension will use the tslint module that is installed closest to the linted file. To install tslint and typescript globally you can run `npm install -g tslint typescript`.
8
8
9
-
>Tip: if you get an error saying, "failed to load tslint", but you have tslint installed locally,
10
-
try to install tslint and its typescript dependency globally using `npm install -g tslint typescript`.
9
+
# FAQ
10
+
11
+
- The `no-unused-variable` rule doesn't report warnings any more?
12
+
13
+
Since tslint version 5 the rule [no-unused-variable](https://palantir.github.io/tslint/rules/no-unused-variable/) rule requires type information. Rules with type information are currently not supported by vscode-tslint, pls see [issue #70](https://github.com/Microsoft/vscode-tslint/issues/70#issuecomment-241041929). The recommended work around is to enable the TypeScript compiler option `noUnusedLocals` and `noUnusedParameters`in your `tsconfig.json` file.
14
+
15
+
- How can I use tslint rules that require type information
16
+
17
+
The recommended way is to run tslint manually on your project from a [task](https://code.visualstudio.com/docs/editor/tasks). To see the lint warnings in the Problems panel you can associate the task with a [Problem matcher](https://code.visualstudio.com/docs/editor/tasks#_processing-task-output-with-problem-matchers) as described in the section [below](#Using-the-extension-with-tasks-running-tslint).
18
+
19
+
- Linting does not seem to work what can I do?
20
+
21
+
Click on the `TSlint` status bar item at the bottom left of the status bar to see the output from the vscode-tslint extension.
22
+
You can enable more tracing output by adding the setting "tslint.trace.server" with a value of "verbose" or "messages".
0 commit comments