Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support --fixable-only option like eslint-nibble #296

Open
tjx666 opened this issue Aug 24, 2023 · 3 comments
Open

support --fixable-only option like eslint-nibble #296

tjx666 opened this issue Aug 24, 2023 · 3 comments
Labels
Type: Feature New Feature

Comments

@tjx666
Copy link

tjx666 commented Aug 24, 2023

I mean https://github.com/IanVS/eslint-nibble?tab=readme-ov-file#--fixable-only.

In my repo, there are many eslint errors and warnings. So I just want to use auto fix to fix some fixable rules first. But by default, eslint-interactive will also show the rules can't be auto fixed

image
@mizdra
Copy link
Owner

mizdra commented Aug 24, 2023

What is the --fixable option for eslint-nibble? I looked in the README but could not find it. Please provide more information about it.

Also provide a reason or use case why you want the option. Providing not only the details of the feature you want, but also the reason why you want it, will help us to further the discussion.

@mizdra mizdra added Type: Feature New Feature Status: Need More Info Lacks enough info to make progress labels Aug 24, 2023
@tjx666 tjx666 changed the title support --fixable option like eslint-nibble support --fixable-only option like eslint-nibble Aug 24, 2023
@mizdra
Copy link
Owner

mizdra commented Sep 1, 2023

Thanks for fixing the title!

So you only want to see the results of a fixable rule and modify it. I understand what you want to do.

There may be many opinions on when to specify what to filter. I think it would be more useful to be able to filter the results interactively after the command is started and the results are displayed.

@mizdra mizdra removed the Status: Need More Info Lacks enough info to make progress label Sep 1, 2023
@drewgbarnes
Copy link

@mizdra I could see it being useful to filter down by fixable only. any way to winnow down the set of rules being linted could result in a speed up in the runtime right? on a big project, this is desirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New Feature
Projects
None yet
Development

No branches or pull requests

3 participants