jslint-error-explanations
jslint-error-explanations copied to clipboard
:memo: Explanations of all the (sometimes cryptic) error messages thrown by JSLint and JSHint
The search doesn't seem to find all errors. Also it should be possible to search by code e.g. W014
var json = {"content": "\u003c"}; causes the error: "Unexpected '\'." as does: {"content": "\u003c"} which also gives a "bad json" warning.
It is a [linter for TypeScript](https://github.com/palantir/tslint), which is as you know a superset of vanilla JS so has most of the same errors (if not more). We meet good-ol' `eqeqeq`,...
When converting a string like '9.59' to a number I have always used the syntax: var a = '9.59'; a = a \* 1; JSLint seems to find this method...