How to rewrite tslint rule for particular file?
Currently you cannot change the options for a rule - you can only enable/disable a rule for specific lines of code.
For example, say you had the object-literal-sort-keys
rule enabled in your tslint.json
file. You could then do something like this to disable it for a portion of a file and then renable it for the rest of the file:
/* tslint:disable:object-literal-sort-keys */const range = { min: 5, middle: 10, // TSLint will *not* warn about unsorted keys here max: 20};/* tslint:enable:object-literal-sort-keys */
See the TSLint website for more information.
Hm... Comment like this work:
/* tslint:disable:variable-name quotemark:[true, "double"] */
issue solved.