Closed Greenek closed 1 year ago
I can confirm that I am experiencing this issue too. In order to solve I had to disable the grouping feature of the ordered imports rule. Using TSLint (deprecated) got me into other trouble. Though I know TSLint is deprecated, Angular is only migrating by the end of this year towards ESLint. So I would like to see this fixed, plz.
VSCode V1.45.0 TSLint 1.2.3
Closing as TSLint has been deprecated in favor of ESLint and this extension is no longer being maintained
Please look into migrating to use ESLint and the ESLint VS Code extension
I came across a problem when sometimes autofix is not firing up on file saving, because of
Overlapping ranges are not allowed!
VSCode error. After investigation I found that it's caused byordered-imports.grouped-imports: true
option when imports in the file are not grouped properly. In order to make autofix working again I have to manually run "Fix: Imports from this module are not allowed in this group" first.To reproduce this error clone @greenek/vscode-tslint-ordered-imports-bug repo, run
npm install
and try to autofixsrc/index.ts
.Example code:
tslint.json
tsconfig.json
VSCode Log (Window)
vscode-tslint (deprecated) extension with
"tslint.autoFixOnSave": true
setting can be used as a temporary workaround.VSCode v1.45.0-insider TSLint extension v1.2.3