Top "Tslint" questions

tslint is a static analysis linter for TypeScript.

In Typescript, what is the ! (exclamation mark / bang) operator when dereferencing a member?

When looking at the sourcecode for a tslint rule, I came across the following statement: if (node.parent!.kind === ts.…

typescript tslint
How to use `@ts-ignore` for a block

The // @ts-ignore comment enables the Typescript compiler to ignore the line below it. How can one ignore a whole block …

typescript tslint
tslint / codelyzer / ng lint error: "for (... in ...) statements must be filtered with an if statement"

Lint error message: src/app/detail/edit/edit.component.ts[111, 5]: for (... in ...) statements must be filtered with an if statement …

angular angular2-forms angular-cli tslint
How to ignore a particular directory or file for tslint?

The IDE being used is WebStorm 11.0.3, the tslint is configured and works, but, it hangs because it tries to parse …

javascript ide typescript webstorm tslint
tslint how to disable error "someVariable is declared but its value is never read"

I'm using tslint, and got the error. 'myVariable' is declared but its value is never read. I went to the …

tslint
tslint says calls to console.log are not allowed - How do I allow this?

I just started using create-react-app with typescript create-react-app my-app --scripts-version=react-scripts-ts and the default tslint.json configuration does not allow …

reactjs typescript create-react-app tslint
Angular2 - HTTP RequestOptions HEADERS

I currently have an issue with tslint and was hoping someone could point me in the right direction. I'm trying …

angular http typescript tslint
What does it mean when TsLint says "expected callSignature to have a typedef."

I have a function in my code: networkStop = (action: string = null) => { this.action[action] = false; this.net = false; this.…

typescript signature tslint
What is the standard for use of quotes in Typescript?

I notice in my application that TsLint is suggesting: static $inject = [ '$http', '$q', '$scope', 'configService', 'stateService', 'utilityService' ]; …

typescript tslint
how to set multiple CSS style properties in typescript for an element?

Please consider the below snippet. i need to set multiple CSS properties in typescript. for that i have tried the …

css typescript tslint