Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run format command silently #17

Open
sQVe opened this issue Mar 5, 2021 · 0 comments
Open

Run format command silently #17

sQVe opened this issue Mar 5, 2021 · 0 comments

Comments

@sQVe
Copy link

sQVe commented Mar 5, 2021

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

🙏🏼

sQVe added a commit to sQVe/dotfiles that referenced this issue Mar 5, 2021
Running applyAutoFixes on a invalid stylelint projects generates an
error each time which is really annoying. Revert this commit once it is
possible to format silently.

bmatcuk/coc-stylelintplus#17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant