Recently, I decided to integrate tslint into my workflow. Following the installation steps, I used the command:
npm install tslint tslint-config-ms-recommended --save-dev
My configuration file tslint.json
now looks like this:
{
"extends": "tslint-config-ms-recommended"
}
However, when I run the command:
./node_modules/.bin/tslint src/**/*.ts
I noticed that it was also scanning through various definitely typed files such as:
src/interfaces/highland.d.ts[621, 1]: space indentation expected
src/interfaces/highland.d.ts[622, 1]: space indentation expected
src/interfaces/highland.d.ts[635, 1]: space indentation expected
This unnecessary inclusion of d.ts files in the output bothered me and led me to seek a way to only check my *.ts files while ignoring others.
Even though I tried using the --exclude option like this:
./node_modules/.bin/tslint src/**/*.ts --exclude src/**/*.d.ts