heybourn / headwind

An opinionated Tailwind CSS class sorter built for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
MIT License
1.38k stars 46 forks source link

Linting loop about sorting and eslint. #134

Open YWoooo opened 3 years ago

YWoooo commented 3 years ago

Hi,

I'm not good at English, so I hope this .gif could descript the issue.

RH1H6t3PBI

Prettier run first. Then sorting. But the result of sorting would violate my eslint's rule. So, prettier will run again at the next time I save, and the result will again, violate the rule.

It causes a loop, between headwind and eslint.

I know changing my eslint's rule will solve the problem. And I know this might not a issue for headwind. So I'm not really sure if this is an real issue. But it would be nice if there is another way to solve this.

If you need other informations like my .prettierrc.js or settings.json, please let me know.

Thank you.

vkaelin commented 3 years ago

127