HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

tslint — A pluggable linting utility for TypeScript. More information: <https://palantir.github.io/tslint/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlintingclitypescriptpluggablefortslintutility

Problem

How to use the tslint command: A pluggable linting utility for TypeScript. More information: <https://palantir.github.io/tslint/>.

Solution

tslint — A pluggable linting utility for TypeScript. More information: <https://palantir.github.io/tslint/>.

Create TSLint config:
tslint --init


Lint on a given set of files:
tslint {{path/to/file1.js path/to/file2.js ...}}


Fix lint issues:
tslint --fix


Lint with the configuration file in the project root:
tslint --project {{path/to/project_root}}

Code Snippets

Create TSLint config

tslint --init

Lint on a given set of files

tslint {{path/to/file1.js path/to/file2.js ...}}

Fix lint issues

tslint --fix

Lint with the configuration file in the project root

tslint --project {{path/to/project_root}}

Context

tldr-pages: common/tslint

Revisions (0)

No revisions yet.