When linting a Less file, there are error since you deployed version 9.7.0.
For instance this basic Less file:
@my-variable: #f7f8f9;
@anotherVariable: 1px;
.some-mixin() {
margin: 0;
}
span {
.some-mixin();
background-color: @my-variable;
margin-left: @anotherVariable;
}
would give:
1:1 ✖ Unexpected unknown at-rule "@my-variable" at-rule-no-unknown
2:1 ✖ Expected "anotherVariable" to be "anothervariable" at-rule-name-case
2:1 ✖ Unexpected unknown at-rule "@anotherVariable" at-rule-no-unknown
9:5 ✖ Unexpected unknown at-rule "@some-mixin" at-rule-no-unknown
This is due to moving to postcss-less 3.0.1 in version 9.7.0. They now generate AtRule nodes for mixins and variables (with respectively mixin: true and variable: true properties), I suppose we should handle these cases in all at-rule-* rules.
@glutentag Thanks for the report.
Yes, I think we should consider these non-standard at-rules. The fix is to:
isStandardSyntaxAtRule utilat-rule-name-case, at-rule-no-unknown and any other affected at-rule-* rules like soIf someone can do this today then I can put out a patch release this evening.
Most helpful comment
@glutentag Thanks for the report.
Yes, I think we should consider these non-standard at-rules. The fix is to:
isStandardSyntaxAtRuleutilat-rule-name-case,at-rule-no-unknownand any other affectedat-rule-*rules like soIf someone can do this today then I can put out a patch release this evening.