mansona / lint-to-the-future

A modern way to progressively update your code to the best practices
54 stars 7 forks source link

Regenerate declarations #27

Open wagenet opened 2 years ago

wagenet commented 2 years ago

It would sometimes be nice to regenerate the declarations since not all tools (e.g. ember-template-lint) automatically remove unnecessary declarations to be removed.

mansona commented 1 year ago

yea I've been thinking about this for a while 🤔

It's a complicated one because it would need to be a new command and all commands are just delegated down to the plugins. That would mean that we would have to implement the plugin-api-versioning protections, or just something as simple as checking if "reset" is something that the plugin supports and just ignoring it if not.

It's not the biggest deal since there are only 3 plugins for LTTF (that I know of) and all of them are "owned" by me 😂

what do you think about adding a lint-to-the-future reset command that does what you're talking about?

wagenet commented 1 year ago

I think a reset command makes sense.