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
styled-components cannot be formatted with stylelint #337
Comments
To confirm, you're using the format document option? If you are, currently it will not enforce any rules from your configuration due to #328 (comment). |
I'm sure that the formatted document is used. My .less file can be formatted. I set save and auto format |
Sounds like this might be a duplicate of #328 then. I'll close this issue in favour of that one. Once stylelint/stylelint#5723 is resolved, we'll be able to fix formatting here in the extension, but it'll depend on the version of Stylelint with the functionality. If you feel I'm mistaken or I've misunderstood, feel free to reopen the issue with more details. Thanks! |
How did you encounter this bug?
I try to use stylelint and stylelint-order to format styled-components and sort the attributes, but I can't always succeed. I hope to get some help.
Code Snippet
No response
Stylelint Configuration
{
"extends": ["stylelint-config-standard", "stylelint-config-rational-order", "stylelint-config-prettier"],
"plugins": ["stylelint-order"],
"rules": {
"font-family-no-missing-generic-family-keyword": null,
"value-keyword-case": null,
"no-descending-specificity": null,
"no-empty-source": null,
"declaration-bang-space-before": null,
"declaration-block-trailing-semicolon": null,
"declaration-block-semicolon-newline-after": "always",
"block-opening-brace-newline-after": "always"
}
}
Extension Configuration
No response
Actual Behaviour
unable to sort attributes
Expected Behaviour
ability to format and sort attributes
Logs
No response
Stylelint Version
v14.0.1
vscode-stylelint Version
1.2.1
Node.js Version
v14.16.0
Operating System
w10
Windows Subsystem for Linux
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: