stylelint-order icon indicating copy to clipboard operation
stylelint-order copied to clipboard

Provide `EditInfo` to allow per-violation quick fix

Open FloEdelmann opened this issue 9 months ago • 1 comments

The Stylelint VS Code plugin recently (in version 1.5.0) added support for quick fixes, i.e. applying a single autofix for one rule violation.

This is made possible by rules providing an EditInfo for each violation in the report function. I suggest to add this information to the rules in this plugin.

FloEdelmann avatar Mar 28 '25 10:03 FloEdelmann

I'm afraid this is not compatible with the plugin's autofix. Autofix doesn't work per violation basis. The whole file gets fixed.

There is no easy way to change that. Complete rewrite would be necessary.

hudochenkov avatar Mar 28 '25 15:03 hudochenkov