Top "Tslint" questions

tslint is a static analysis linter for TypeScript.

How to fix the issue not all the code paths return value?

I have an error in the code that I am trying to resolve. I think it needs a return statement …

javascript typescript tslint
tslint - Missing trailing comma (trailing-comma) on the last line

I cannot figure out why my tslint even want to see the trailing comma on the end of the last …

javascript typescript tslint
TSLint - Preventing error: The key is not sorted alphabetically

I'm doing a test app with Ionic2 / Cordova / Typescript / Angular. I'm using tslint 5.6.0. I'm using the following module: https://www.…

reactjs typescript typescript2.0 lint tslint
tslint-loader with webpack 2.1.0-beta.25

I have an angular2 Project that I compress/compile with webpack. I use tslink loader with webpack so I have …

typescript webpack tslint webpack-2
What is the "as syntax" pointed out by tslint?

I upgraded tslint and now it complains about: ERROR: src/Metronome/JobFetcher.ts[13, 32]: Type assertion using the '<>…

typescript tslint
what is the meaning of tslint: "Warning: The 'no-use-before-declare' rule requires type information"?

What is the meaning of tslint: "Warning: The 'no-use-before-declare' rule requires type information."? I did some basic googling but I'm …

angular typescript tslint
How to exclude a folder from tslint?

I like to exclude the test folder form linting with tslint in vscode. So I have placed an exclude into …

javascript visual-studio-code lint tslint
tslint one line rule misplaced 'else'

I have such config in tslint.json for one line rule one-line": [true, "check-open-brace", "check-catch", "check-else", "check-whitespace" ], When I have …

typescript tslint
How to run tslint.json?

I am newbie to typescript. I have tslint.json file created but don't have an idea about how to run …

javascript node.js typescript tslint
typescript - tslint misplaced 'else' (one-line)

I'm using TSLint extension for VS Code. I got bunch of [tslint] misplaced 'else' (one-line) warnings. For example, at the …

javascript visual-studio-code tslint