Closed nordringrayhide closed 3 years ago
Sorry, that's not one of the eslint-nibble flags. What use-case do you have for this? You just want to fix a single rule without the interactive chooser?
Exactly. If it can be done in interactive mode I'd be great to have it in non-interactive one as well. For instance in Ruby linter tool RuboCop can do that from the box()
rubocop app/controllers/users_controller.rb --only Layout/ExtraSpacing --auto-correct
so I'm looking the same functionality tool for js part
Hmmm, I'll need to think about it. The original goal of --no-interactive
was simply to enable use in CI, but your case makes sense too. In fact, eslint-nibble uses https://github.com/IanVS/eslint-filtered-fix under the hood, and I think it could meet your needs nicely. Maybe try it out and let me know what you think?
would also like to see this. interactive mode is particularly challenging on a large project where if there is more than one page worth of rule options, it will redraw for each cursor movement.
Have you tried using https://github.com/IanVS/eslint-filtered-fix for this, @bdefore?
i have not yet
I'd suggest trying it out, I think it will meet your needs nicely.
indeed it does. thanks for your work on these libraries.
yarn eslint-nibble --rule quotes --no-interactive --fix .