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
Prettier-Stylelint Support #712
Comments
What's a similar use-case for css? I don't want Vetur to become a hodgepodge of every formatter. |
For the projects that I use stylelint, the first fixable error that comes to my mind is using the order rule. But it certainly isn't a big issue as the Vetur certainly should not become a hodgepodge of every formatter. I thought about the support for prettier-stylelint because it seemed to me that wouldn't be so different from prettier-eslint as both format files with prettier, which Vetur already has support, and then apply the --fix from the respective linters. But if it is not feasible or in the direction of the project, what if it was possible to allow users to use custom formatters from outside the Vetur project through configuration? |
I would also love this feature. Or someone to explain how to get it to work. I need Vetur to use prettier for js in vue files with my eslint configuration and prettier for postcss in vue files with a stylelint configuration. I have prettier.eslintIntegration and prettier.stylelintIntegration turned on in my settings but it doesn't appear to respect my stylelint settings. Surprised more people don't have this issue. |
You can follow this repo's guide to setup stylelint: |
@octref your link doesn't provide any information on how to get vetur to work with prettier-stylelint. The problem I have is that whenever I save my .vue file it automatically formats the SCSS under |
@ejwaibel That's right, we don't have integration with prettier-stylelint yet. The error-checking are provided by the StyleLint extension. |
I'd love to see prettier-stylelint support as well. |
I would also love to see prettier-stylelint integration with vetur - i find (opinion) eslint & stylelint the 2 most common formatting tools for js & css languages amongst the different development teams i've worked with for trying to maintain some kind of code style uniformity. |
+1 Linting style files, like css, less, etc. is as important as linting js files. Please consider to support it. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
can't believe that pull request has been sitting there for six months |
unbelievable |
1 similar comment
unbelievable |
I merged origin/master into #1567 and it's not working. It seems https://github.com/hugomrdias/prettier-stylelint is abondonded and https://github.com/prettier/stylelint-prettier is now active. PR welcome as I'm focusing on other tasks. |
Would It be feasible to add support for prettier-stylelint like prettier-eslint?
I love working on VSCode using prettier-vscode and not so long ago they added support for prettier-stylint, but that only works for css and related files. So I would like to have the same facility when working on .vue files.
I could start working on it with some guidance if It is considered as a good addition to Vetur
I already started reading through the source code to have some understanding of how it could be done.
The text was updated successfully, but these errors were encountered: