Reputation: 2509
Is it possible to override rules for specific files in TSLINT (tslint.json) like a configuration along those lines:
"overrides": [{
"files": [ "*.spec.js" ],
"rules": {
"no-unused-expressions": 0
}
}]
I wouldnt want to set a comment on each file to disable the rules - its redundant.
Upvotes: 3
Views: 2403
Reputation: 2107
Update 2021;
Nowadays TSLint
is deprecated and eslint
should be used instead, but TSLint
did support overriding rules for sub-directory, like:
{
"extends": "../tslint.json",
...
}
Seems like the only option so far is to disable them using the comment functionality.
Upvotes: 4