Top "Tslint" questions

tslint is a static analysis linter for TypeScript.

Making Sense of 'No Shadowed Variable' tslint Warning

I have a function that checks for the current stage in a sequential stream, based on a particular discipline that …

javascript angular typescript tslint
How to rewrite code to avoid TSLint "object access via string literals"

I'm pretty new to TypeScript and I would like to know if there exists a good way to rewrite code …

typescript tslint
TSLint Error "Exceeds maximum line length of 120"

In my Angular2 App I'm importing one component like this: import { PersonsSingleAccountComponent} from '../persons-information/fragments/persons-single-account/persons-single-account-bookings/persons-single-account-bookings.component' …

angular typescript tslint
How can I use TSLint in VS Code?

I have installed TSLint in VSCode and created a tslint.json file next to tsconfig.json. But TSLint is not …

typescript visual-studio-code tslint
Typescript : require statement not part of an import statement

Typescript version 2.2.2 I wrote this require in my UserRoutzr.ts const users = <IUser[]> require(path.join(process.cwd() + "/…

typescript tslint
Disable TSLint in VSCode

So this feels like this should be such an easy task but it's starting to drive me insane. I can't …

typescript visual-studio-code tslint
TSLint get rid of missing-whitespace

I've been trying to scour the internet to solve this but to no avail. Perhaps you can help me. I …

typescript tslint
How to lint entire folder using tslint

Is that possible to lint entire folder using tslint? Using eslint it is possible to do eslint ./src to validate …

typescript tslint
tslint complaining "statements must be filtered with an if statement" when using switch

Lets say I have the following method: getErrorMessage(state: any, thingName?: string) { const thing: string = state.path || thingName; const messages: …

angular typescript angular-cli tslint
Auto fix TSLint Warnings

[64, 1]: space indentation expected [15, 27]: Missing semicolon [109, 36]: missing whitespace [111, 24]: missing whitespace [70, 1]: Consecutive blank lines are forbidden I keep getting warnings like these …

angular typescript warnings tslint