Converts your TSLint configuration to the closest possible ESLint equivalent. 🚀
MIT License
Bot releases are hidden (Show)
Published by JoshuaKGoldberg over 3 years ago
This minor release includes a few rule touchups in preparation for Angular v12.
Thanks @JamesHenry for sending in the PR!
Published by JoshuaKGoldberg over 3 years ago
This release contains an assortment of new rules or fixes for rule ports from codelyzer to angular-eslint, as well as a more explicit notice in our README.md to use the native angular-eslint tooling for setting up typescript-eslint on Angular projects. (tip: do that!)
We also have a new rule ported from tslint-microsoft-contrib and a bugfix for no-param-reassign
's converter.
Contains:
Cheers to the co-maintainers who worked on these changes: @KingDarBoja and @JoshuaKGoldberg!
Published by JoshuaKGoldberg over 3 years ago
It's almost springtime! To celebrate, we've added a rule merger for jsx-no-bind
and set of Angular-specific rules that were added to angular-eslint since our first big Angular push.
Many thanks to @highvolt-dev for all the Angular rules, as well as @KingDarBoja for co-maintaining and adding the rule merger!
Published by JoshuaKGoldberg almost 4 years ago
Happy belated holidays and new year, everyone! This release contains a few additional jsx rule converters, as well as a bugfix for no-shadow
conversion and a removal of now-unnecessary @angular-eslint/use-pipe-decorator
rule from conversion.
Many thanks to @rafaelss95, the community contributor behind #924!
Published by JoshuaKGoldberg almost 4 years ago
This release has but a few small changes for edge cases and dependency bumps. The dependency bumps include a version of cson-parser
with a pinned version of the coffeescript
dependency (see #839). Many thanks to co-maintainer-extraordinaire @KingDarBoja for working with our friends coming from Angular land to identify and push on the cson-parser
versioning issues!
Otherwise, this just contains two behavior improvements:
Published by JoshuaKGoldberg almost 4 years ago
Version 2.0! Hooray! 🎊
This release marks the stabilization of the package's Node API, as introduced in the v2.0.0-beta* releases. We're already seeing great usage of the APIs in the angular-eslint schematic.
This stable release adds a comment conversion API alongside the configuration file API released in the betas, as well as a couple missing RxJS rule converters::
Thanks to this release's community contributor @criskrzysiu!
Published by JoshuaKGoldberg almost 4 years ago
Yes, that's right, beta three. After three testing betas from the Node API branch in #732, we're releasing a v2 beta under the stable
tag on npm to let people try it out. This will most likely be the same set of features and API changes as the full 2.0 release, but just in case, we're keeping it as a beta tag now.
This release contains a ton of goodness, much of which comes from the efforts of community contributor @criskrzysiu sending a ton of issues and subsequent PRs for rxjs rules. Much appreciated!
Two additional major changes are included:
The full list of user-facing changes in this release are:
Many thanks to all the code contributors for the PRs shipped in this release!
Published by JoshuaKGoldberg about 4 years ago
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.
Many thanks to this release's external contributor, @kuzivany!
Published by JoshuaKGoldberg about 4 years ago
This release most notably fixes a bug in generated configurations that prevented plugins such as eslint-plugin-import
from being included in the configuration file. It also allows --comment
globs to specify or reuse TypeScript files and adds a notice for incompatible arguments in the arrow-return-shorthand
converter.
These issues were tackled by the repository's maintainers, @JoshuaKGoldberg and @KingDarBoja.
Published by JoshuaKGoldberg about 4 years ago
Hot on the heels of 1.2.0 comes our new 1.3.0 release with two quality of life improvements:
These should reduce the amount of logs output for most conversions. They were authored by the library's core maintainers:
Published by JoshuaKGoldberg about 4 years ago
This release introduces recognition for mapping between an original configuration's use of tslint-react
to the new eslint-plugin-react
, as well as a few new rule converters. Exciting! It also comes with a fix for CLI parsing that was introduced by a breaking change in a dependency.
Thanks as always to our contributors!
Published by JoshuaKGoldberg about 4 years ago
This release marks the first minor version since the 1.0 stable release. It comes with a group of converters for the community React rules, and a few assorted bugfixes.
Many thanks to all our contributors!
Published by JoshuaKGoldberg about 4 years ago
Hooray! 🎉
This release marks the stable 1.0 version of tslint-to-eslint-config. After a long waiting period of beta versions, this contains just the one bug fix to bring the library to stability:
Published by JoshuaKGoldberg over 4 years ago
Thanks to an issue with case sensitivity in the 1.0.0-beta1
release, we're releasing this new beta quickly.
It also includes converters for the remaining Codelyzer TSLint rules that have angular-eslint ESLint equivalents. See the Angular Support project for the list of rules that are blocked or completed.
This release contains commits from the repository maintainers: @JoshuaKGoldberg and @KingDarBoja.
Published by JoshuaKGoldberg over 4 years ago
This one's another big release! Thanks to users of the first 1.0 beta, there were enough important issues discovered that a second 1.0 beta seems appropriate.
In addition to bugfixes and slight improvements to the CLI and configuration file outputs, this release marks the start of our dedicated push for Angular ("Codelyzr") rule migrations. About a quarter of the known existing rules have been converted. Expect more in subsequent 1.X versions!
Many thanks to all our contributors:
Additionally, I'm personally thrilled to welcome @KingDarBoja as a new repository maintainer to help push the repository forward! 💪 @KingDarBoja has contributed to practically every released version for the last few months and recently cranked out a great deal of Angular rule converters. I'm excited to see what we'll accomplish post-1.0.
The full list of relevant changes in this version is:
Published by JoshuaKGoldberg over 4 years ago
This one's a big one! Thanks to a PR from @KingDarBoja, a new --comment
flag is now experimentally available to convert TSLint inline rule flags:
// tslint:disable-next-line no-floating-promises
...to their ESLint equivalents:
// eslint-disable-line @typescript-eslint/no-floating-promises
Published by JoshuaKGoldberg over 4 years ago
This patch release, hot off the press from 0.7.0, comes with a new rule converter and more intelligent package install commands. Previous versions would suggest installing all new packages related to ESLint and/or typescript-eslint. This release will only suggest packages that don't exist in your package.json
.
The full list of released PRs is:
Thanks as usual to this release's dedicated external contributor, @KingDarBoja!
Published by JoshuaKGoldberg over 4 years ago
This v0.7.0 brings us much closer to completing the 1.0 milestone. It's got a few converter and merger fixes along with a hefty dose of CLI output improvements. The CLI output is now more consistent from area-to-area and keeps detailed log output to the generated ./tslint-to-eslint-config.log
. It'll also be more aggressive in asking to install packages if it fails to read from existing configuration files due to a package not being installed.
Additionally, a new --prettier
flag will now indicate to include eslint-config-prettier
in generated rulesets. It's enabled by default if no formatting rules already exist; otherwise, the CLI will strongly recommend using it.
The full list of changes is:
no-reference-import
rule@typescript-eslint/consistent-type-assertions
comment-format
's check-space
output for markerstslint-eslint-plugin
package as necessary to install commands--prettier
flag to include eslint-config-prettiertslint-eslint-plugin
' to be 'eslint-plugin-tslint
'@typescript-eslint/triple-slash-reference
mergerThanks as always to our great contributors!
Published by JoshuaKGoldberg over 4 years ago
This new minor version release adds an FAQ notice explaining the generated ESLint file, which starts this project's journey towards better documenting best practices for generated configurations. Hooray!
In total, it contains:
ban-types
Many thanks to our community contributors!
Published by JoshuaKGoldberg over 4 years ago
This release celebrates our collective love of linting JavaScript & TypeScript code! 💖
Great appreciation and love to this version's contributors: