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
When function-calc-no-unspaced-operator is configured as true
Given we use a dash separated sass variables and in some cases we add them to a calc
Then stylelint advise us incorrectly that it is an error, identifying it as an operation and not as a sass variable
Example:
$example-var: 2px;
a { font-size: calc(#{$example-var}*2); }
Error:
What Stylelint configuration is needed to reproduce the bug?
What steps are needed to reproduce the bug?
When
function-calc-no-unspaced-operator
is configured as trueGiven we use a dash separated sass variables and in some cases we add them to a
calc
Then stylelint advise us incorrectly that it is an error, identifying it as an operation and not as a sass variable
Example:
Error:
What Stylelint configuration is needed to reproduce the bug?
{
"rules": {
"function-calc-no-unspaced-operator": true
}
}
How did you run Stylelint?
stylelint "**/*.scss" --config myconfig.json
Which version of Stylelint are you using?
14.8.1
What did you expect to happen?
Not to get an error
What actually happened?
It throws the errors "Expected single space before "-" operator" and "Expected single after before "-" operator"
Does the bug relate to non-standard syntax?
Yes, its related to SCSS
Proposal to fix the bug
No response
The text was updated successfully, but these errors were encountered: