-
-
Notifications
You must be signed in to change notification settings - Fork 32
Labels
enhancementNew feature or requestNew feature or request
Description
Environment
ESLint version: Latest (Possible to include the version on the Code Explorer?)
@eslint/css version: Latest (Possible to include the version on the Code Explorer?)
Node version: N/A
npm version: N/A
Operating System: mac
What problem do you want to solve?
PostCSS is an extremely popular enhancement over CSS. However, since this plugin only seems to support strict CSS syntax, it cannot be leveraged.
For example, when using https://github.com/postcss/postcss-mixins, it yields a parsing error: Code Explorer
@define-mixin icon $network, $color: blue {
.icon.is-$(network) {
color: $color;
@mixin-content;
}
.icon.is-$(network):hover {
color: white;
background: $color;
}
}
@mixin icon twitter {
background: url(twt.png);
}
@mixin icon youtube, red {
background: url(youtube.png);
}This emits the error:
Error: Semicolon or block is expected(column 20)
What do you think is the correct solution?
Some ideas:
- Looser syntax parsing, maybe behind an option?
- PostCSS plugin
Participation
- I am willing to submit a pull request for this change.
Additional comments
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Complete