TypeScript Explanation Linter Errors

The web essentials plugin for visual studio 2013 comes with linter for typescript. Now I get hundreds of messages, but I have no idea what some of them mean.

Is there a place where every tslint error is explained? (something like tslint wiki?) I tried to find them on Google, but I did not get any explanation.

Errors:

  • TsLint: CallSignature is expected to have a typedef.
  • TsLint: missing 'use strict' (I have "use strict" at the top of the file, which causes the following error)
  • TsLint: an assignment or function call is expected (in 'use strict';)

and then there are some really strange ones:

  • TsLint: a comment should start with a space (really? Why?)
+6
source share
1 answer

view tslint wiki?

Unfortunately not. But a brief description is provided here https://github.com/palantir/tslint#supported-rules

Many of these are jslint, so this should help http://jslinterrors.com/

TsLint: a comment should start with a space (really? Why?)

This is a coding convention to make comments visually pleasing. // comment It's easier to read than //comment . Visual aesthetics become important in large teams.

+8
source

All Articles