Environment
Node version: v24.13.0
npm version: v11.9.0
Local ESLint version: v10.0.2 (Currently used)
Operating System: linux 6.12.63+deb13-amd64
@eslint/css: v0.14.1
Which language are you using?
stylesheet
What did you do?
Configuration
import css from "@eslint/css";
export default [
{
files: ["**/*.css"],
plugins: { css },
language: "css/css",
},
];
@media not ((prefers-contrast) or (forced-colors)) {
button.badged::after {
background-color: red;
}
}
What did you expect to happen?
The file can be parsed.
What actually happened?
Parsing error:
/home/julien/travail/git/eslint-css-media-parsing/style.css
1:13 error Parsing error: Number, dimension, ratio or identifier is expected
Link to Minimal Reproducible Example
https://github.com/julienw/eslint-css-media-parsing
Participation
AI acknowledgment
Additional comments
No response
Environment
Node version: v24.13.0
npm version: v11.9.0
Local ESLint version: v10.0.2 (Currently used)
Operating System: linux 6.12.63+deb13-amd64
@eslint/css: v0.14.1
Which language are you using?
stylesheet
What did you do?
Configuration
What did you expect to happen?
The file can be parsed.
What actually happened?
Parsing error:
Link to Minimal Reproducible Example
https://github.com/julienw/eslint-css-media-parsing
Participation
AI acknowledgment
Additional comments
No response