Plugin not working with stylelint-config-sass-guidelines
abogacki opened this issue · comments
After adding .stylelintrc
configuration (listed below) that extends stylelint-config-sass-guidlines (available here) linter throws error on top of each scss
file
{
"extends": [
"stylelint-config-sass-guidelines",
"stylelint-config-prettier"
],
"plugins": [
"stylelint-scss",
"stylelint-prettier"
],
"rules": {
"prettier/prettier": true,
"max-nesting-depth": null,
"scss/at-import-partial-extension-blacklist": null,
"order/order": [
[
"custom-properties",
"dollar-variables",
{
"type": "at-rule",
"name": "extend"
},
{
"type": "at-rule",
"name": "include"
},
"declarations",
"rules",
{
"type": "at-rule",
"name": "media"
}
]
]
}
}
The issue is related to declaration-property-value-disallowed-list
which is defined by stylelint-config-sass-guidelines like:
"declaration-property-value-disallowed-list": {
"border": ["none"],
"border-top": ["none"],
"border-right": ["none"],
"border-bottom": ["none"],
"border-left": ["none"]
},
The above seems to ok with official docs. Configuration works perfectly fine with VS Code.
Is there a solution to this?
@abogacki I have this isse too..
Always reproduced on macOS Catalina, macOS Big Sur with latest version of Atom.
Occurs for me too, M1 Mac Big Sur 11.5.2 and linter-stylelint 4.5.1
It appears to me the problem is the old version of stylelint
itself.
Line 64 in a81cfcd
If I delete or upgrade the local install in ~/.atom/packages/linter-stylelint/node_modules/stylelint
the problem goes away as the global stylelint
(I have 13.13.1
) is used instead. @abogacki @matteobertoldo I'm curious if this works for you.