Open orionrush opened 5 years ago
a respectful 'bump'?
@orionrush seems dead, try https://github.com/prettier/stylelint-prettier
yes, but this isn't ideal, as stylelint-prettier inverts the workflow. I want to prettify and then apply linting rules. I've reverted to just doing this in sequence manually.
@orionrush did you find any solution for that? another package maybe?
E: This one seems to be working just fine :)
Take a look at stylelint-prettier, it’s not as ideal of a workflow, but it’s actively maintained.
@SharakPL Yes, your SO link is about stylelint-prettier, and those rules will help.
However, I liked the workflow of this package (prettier-stylelint) because passing the document through prettier first and then enforcing stylelint rules makes more sense. Prettier has less customization - it doesn't care™️, and so, if we pass the document through stylelint firsts and then Prettier, Prettier can undo some of the rules that you want to enforce in stylelint.
It looks like https://github.com/prettier/stylelint-prettier now uses
This was previously at the following URL but now part of the Prettier project:
It would be great to see this package deprecated and link to the above shared config
It would be great to see this package deprecated and link to the above shared config
Actually it wouldn't since prettier team recommends installing prettier-stylelint. Although I can't make it work anyway 😞
There's a similar plugin effective-prettier-vscode
which runs prettier, eslint and stylelint in order. I had to switch to it because prettier-stylelint stopped working.
https://marketplace.visualstudio.com/items?itemName=sebastian-software.effective-prettier-vscode https://github.com/sebastian-software/effective-prettier https://github.com/sebastian-software/effective-prettier-vscode
yarn add --dev @effective/prettier
, install VSCode plugin, in .code-workspace: "editor.defaultFormatter": "sebastian-software.effective-prettier-vscode"
Hi - just checking on the health of the project.