Environment
ESLint version: v10.11.0
@eslint/css version: v2.0.0
Node version: v24.16.0
npm version: v11.13.0
Operating System: windows
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",
rules: {
"css/selector-complexity": ["error", { maxTypes: 0 }],
},
},
];
/* eslint css/selector-complexity: ["error", { "maxTypes": 0 }] */
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
What did you expect to happen?
No errors. Keyframe selectors should not be counted by maxTypes.
What actually happened?
4:2 Exceeded maximum type selector. Only 0 allowed.
8:2 Exceeded maximum type selector. Only 0 allowed.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-yykapbcr
Participation
AI acknowledgment
Additional comments
No response
Environment
ESLint version: v10.11.0
@eslint/css version: v2.0.0
Node version: v24.16.0
npm version: v11.13.0
Operating System: windows
Which language are you using?
stylesheet
What did you do?
Configuration
What did you expect to happen?
No errors. Keyframe selectors should not be counted by
maxTypes.What actually happened?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-yykapbcr
Participation
AI acknowledgment
Additional comments
No response