Category "tslint"

typescript arguments are not aligned (align)tslint(1)

I have the code setTimeout(() => { const elementsInput: any = document.querySelectorAll('.Modal__headerEmailInput') elementsInput[0].focus() el

Running TSLint only on changed files with Git Diff

I want to run tslint only on files that were modified in a pull request, instead of the entire project. git diff --name-only develop -- *.ts successfully prints

The return type of an async function must be the global Promise<T> type

Why does TSlint still says "The return type of an async function or method must be the global Promise type"? I can't understand what's wrong. UPDATED:

What is the preferred declaration convention for objects or arrays: const or let?

I'm not asking what's technically possible; I know you can do const a = []; const b = {}; a.push['sup']; b.test = 'earth'; What I'm wondering is whether ther

Angular TSLint - Cannot find builder "@angular-devkit/build-angular:tslint"

When I try to run command ng lint --fix cli throws this error: An unhandled exception occurred: Cannot find builder "@angular-devkit/build-angular:tslint". See

Angular TSLint - Cannot find builder "@angular-devkit/build-angular:tslint"

When I try to run command ng lint --fix cli throws this error: An unhandled exception occurred: Cannot find builder "@angular-devkit/build-angular:tslint". See

What is the preferred declaration convention for objects or arrays: const or let?

I'm not asking what's technically possible; I know you can do const a = []; const b = {}; a.push['sup']; b.test = 'earth'; What I'm wondering is whether ther

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 d