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
Plugin not working #123
Comments
You code example doesn't have any order violation according to your config. |
Sorry it was just a bad example then, my bad... @hudochenkov do you see anything wrong with my config? |
Config looks good. |
@hudochenkov I don't understand why I am getting no stylelint errors/warnings then, for example in my div:first-child {
grid-column: 1 / -1;
display: flex;
align-items: center;
border-bottom: 1px solid var(--divider-color);
margin-bottom: 2em;
}
div:last-child {
margin-top: 2em;
border-top: 1px solid var(--divider-color);
grid-column: 1 / -1;
} And when running
|
There is no alphabetic order specified in your config. If you want alphabetical order, then you need to use {
"extends": "stylelint-config-recommended",
"plugins": [
"stylelint-a11y",
"stylelint-order"
],
"rules": {
"order/order": [
"custom-properties",
"declarations"
],
- "order/properties-order": [
- "width",
- "height"
- ]
+ "properties-alphabetical-order": true
}
} |
That's now working, thank you so much @hudochenkov! Quick extra questions to get my project finally set up with
|
Sorry, I somehow missed this.
|
The plugin does not seem to work/lint my typescript code. Please see my following configuration:
.stylelintrc.json
:packages.json
:CSS in JS
codes:yarn lint:stylelint
:Am I doing anything wrong here? 🤔
The text was updated successfully, but these errors were encountered: