bmatcuk / coc-stylelintplus

stylelint extension for coc.nvim supporting additional features
MIT License
48 stars 7 forks source link

Run format command silently #17

Open sQVe opened 3 years ago

sQVe commented 3 years ago

Hey 👋🏼,

When calling stylelintplus.applyAutoFixes in a project that doesn't either is missing a stylelintrc or the correct dependencies it outputs an error. I call stylelintplus.applyAutoFixes from a Format command and it targets a wide array of different filetypes. It should be just fail gracefully if stylelint or config is missing, or atleast have an option to do so.

See relevant code: https://github.com/bmatcuk/coc-stylelintplus/blob/master/src/index.ts#L96-L101

🙏🏼