Top "Tslint" questions

tslint is a static analysis linter for TypeScript.

How to implement BehaviorSubject with getter and setter in Angular 2

I'm trying to implement in my LoginService a isLoggedIn boolean value of type BehaviorSubject together with getter and setter functions …

angular typescript getter-setter tslint behaviorsubject
How to sort imports alphabetically for TypeScript files automatically in WebStorm / PhpStorm?

I use tslint with default config tslint:recommended and I want to adapt as less rules as possible. Certain rules …

typescript phpstorm webstorm tslint code-standards
Setup TSLint in Visual Studio 2015

I develop with Typescript in Visual Studio 2013 and always have my error list open on the bottom. TSLint tells me …

visual-studio-2015 tslint
space indentation expected - Codacy

I heard that good practice is to use something to check my code. I found something called Codacy. I understand …

angular typescript tslint codacy
tslint: namespace and module are disallowed

I recently got a legacy .ts-file and want to update it. Two of the warnings say: 'namespace' and 'module' are …

typescript module namespaces tslint
What is "no-string-literal" rule in tslint?

The description found here is very short: Disallows object access via string literals. Is there any further documentation or example?

typescript tslint
`Tslint --fix` does not autofix but instead generates lint problems as console errors

I'm using the Angular starter kit and I'm trying to get tslint to autofix all my lint problems with the …

tslint npm-scripts codelyzer
How to avoid VsCode Prettier to break chain functions in new lines.?

I'm working with VSCode, Prettier and TSLint. When I do have chained functions call with more than 2 calls like let …

visual-studio-code tslint prettier
How to lint for Typescript compilation issues?

Take the following Typescript arrow function: /** * Returns a probably unique component name. * * @param baseName a suggested name to make unique. * @…

typescript tslint pre-commit-hook husky lint-staged
How to disable Named imports must be alphabetized - tslint

How to disable Named imports must be alphabetized - tslint ? I am getting error: Named imports must be alphabetized. I …

tslint