elicwhite / ESLint-Formatter

Sublime Text 3 Plugin to Autoformat with Eslint
MIT License
139 stars 20 forks source link

Not all fixes are applied at once - have to run tool several times to format code properly #3

Closed Litee closed 8 years ago

Litee commented 8 years ago

Hi,

First of all - thanks for the plugin, very promising. Do far I have noticed a problem - when there are several problems in my code I have to repeat Ctrl-Shift-H several times to get the desired effect. It looks like errors are fixed one by one, not all-at-once.

elicwhite commented 8 years ago

This plugin just runs the ESLint --fix command. If you try running the command manually from the command line, do you see the same behavior? If so, feel free to open a ticket on ESLint's project. If not, feel free to reopen this ticket and we can take a closer look.

Litee commented 8 years ago

I think you are right - same behavior when running from command-line.

Litee commented 8 years ago

As possible workaround - run --fix until file doesn't change