You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context : to enhance the lisibilty of our SCSS files, we have decided to use nesting sign & before > and +.
So we've tried to add stylelint rule selector-no-redundant-nesting-selector with the option ignoreKeywords for > and +, but the use of this rule exception seems to doesn't work (with string or regex).
In the documentation, it's writthen "if you are using Less or some other non-SCSS syntax, the warnings can be disabled by using ignoreKeywords option".
Is ignoreKeywords only available for other framework than sass ?
Is it a bug ?
Did we made a mistake in implemantation ?
Here is the different codes we've tried : "scss/selector-no-redundant-nesting-selector": [ true, { "ignoreKeywords": ["[>+]"] } ]
Context : to enhance the lisibilty of our SCSS files, we have decided to use nesting sign
&
before>
and+
.So we've tried to add stylelint rule
selector-no-redundant-nesting-selector
with the optionignoreKeywords
for>
and+
, but the use of this rule exception seems to doesn't work (with string or regex).In the documentation, it's writthen "if you are using Less or some other non-SCSS syntax, the warnings can be disabled by using
ignoreKeywords
option".Is
ignoreKeywords
only available for other framework than sass ?Is it a bug ?
Did we made a mistake in implemantation ?
Here is the different codes we've tried :
"scss/selector-no-redundant-nesting-selector": [ true, { "ignoreKeywords": ["[>+]"] } ]
"scss/selector-no-redundant-nesting-selector": [ true, { "ignoreKeywords": ["/[>+]/"] } ]
"scss/selector-no-redundant-nesting-selector": [ true, { "ignoreKeywords": ["+", ">"] } ]
Thanks in advance for you're feedback
The text was updated successfully, but these errors were encountered: