After running some tests, I discovered that tslint is functioning correctly when using the following command:
tslint -c tslint.json --project tsconfig.json 'src/**/*.ts'
However, when attempting to integrate it into an npm script, it appears that it is not reading the tslint.json
file.
The structure of my package.json is as follows:
{
"name": "short-night",
"scripts": {
"tslint": "tslint -c tslint.json --project tsconfig.json 'src/**/*.ts'"
},
"devDependencies": {
"ts-lint": "^4.5.1",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.11.1",
"typescript": "^2.9.2"
},
"dependencies": {}
}
You can find my project here.