not-an-aardvark / eslint-rule-composer

A utility for composing ESLint rules from other ESLint rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autofixing?

merlinstardust opened this issue · comments

Is there a means to add autofixing to composed rules?

If so, how would I go about doing that.

Specifically I'm looking to autofix no-unused-vars as reported here

There is already a package that just does that. Take a look at eslint-plugin

That was added after my original question. I would still like to know how I go about doing that so I can learn how to do so for myself

Yes, so if you go to my link, and read the code you will se a solution to an autofixer for no-unused-vars written using eslint-rule-composer which I presume was your original question?

The code technically answers the question but it doesn't walk me through it. I'm hoping for a brief tutorial or blog post on how this works. Reading code is not a substitute for teaching