Open mykola-shkut opened 5 years ago
Unfortunately this doesn't work for me, i have pasted the example configuration from the docs. Anyone still experiencing this?
I am working with .scss
content, could there be a relation?
I am using:
stylelint@13.3.2
stylelint-declaration-use-variable@1.7.2
Ok, fixed the issue by reading the Readme more precisely :D
the properties
and the secondaryOption
must be wrapped in an array - so the following respects all properties
and ignoreValues
:
'sh-waqar/declaration-use-variable': [
[
'/color/',
'background',
'background-color',
{ ignoreValues: ['inherit'] },
],
],
IMHO this issue can therefore be closed.
If you added
color
to the properties array (see docs), you can addinherit
to theignoreValues
array (see docs).Example:
'sh-waqar/declaration-use-variable': [ [ '/color/' { ignoreValues: [ 'inherit' ] } ]
@fuhlig Your configuration should display a syntax error because you are missing a closing bracket ]
at the bottom. Then everything should work as expected.
this should work
'sh-waqar/declaration-use-variable': [
[
'/color/',
{ ignoreValues: ['inherit'] },
],
],
Issue can be closed, thanks :)
could you tell how to fix?