display error in line color: inherit;
could you tell how to fix?
If you added color to the properties array (see docs), you can add inherit to the ignoreValues array (see docs).
Example:
'sh-waqar/declaration-use-variable': [
[
'/color/'
{
ignoreValues: [
'inherit'
]
}
]
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:
[email protected]
[email protected]
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
colorto the properties array (see docs), you can addinheritto theignoreValuesarray (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 :)