Skip to content

v1.5.0: Informed Comment Conversions

Compare
Choose a tag to compare
@JoshuaKGoldberg JoshuaKGoldberg released this 19 Sep 18:19
· 968 commits to main since this release

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!