typescript-tslint-plugin icon indicating copy to clipboard operation
typescript-tslint-plugin copied to clipboard

Disable rule quick fix does not handle disabling multiple rules properly

Open egamma opened this issue 5 years ago • 1 comments

Testing: https://github.com/Microsoft/vscode/issues/62092

(vscode-tslint has the same limitation) When a line has multiple rule violations and you want to disable more then one, then the quick fix doesn´t handle this case properly and generates multiple lines image

It should generate image

egamma avatar Nov 01 '18 13:11 egamma

Example case. Starting with:

// tslint:disable-next-line:array-type
let t: Array<string> = 1;;

Using the disable whitespace quick fix should generate:

// tslint:disable-next-line: array-type whitespace
let t: Array<string> = 1;;

mjbvz avatar Nov 14 '18 00:11 mjbvz

Closing as TSLint has been deprecated in favor of ESLint. We are archiving this repo as this project is no longer maintained

mjbvz avatar May 01 '23 20:05 mjbvz