Behold, at long last: an intelligent system for converting tslint:disable
comments to their eslint-disable
counterparts!
Prior to this release, tslint-to-eslint-config
would directly convert rule names from comments without factoring in the project's TSLint configuration. This was fine in most cases but would occasionally result in a surprising rule name in the cases of TSLint rules that map to different ESLint rules based on their configuration.
As of this release, tslint-to-eslint-config
will cache rule conversions from looking at a project's original TSLint configuration and use them to inform comment conversions when possible. This should cover the vast majority of the dynamic comment conversions for most users. Although it's possible that comments refer to rules not present in the original TSLint configuration, we expect this to be applicable for exceedingly few users.
This release also includes a bugfix for the indent
rule converter when set to tabs.
- #712: Factored config rule conversions into comment conversions
- #720: Fix invalid indent rule when using tabs
Many thanks to this release's external contributor, @kuzivany!