Open
Description
Environment
ESLint version: 9.21.0
@eslint/css version: 0.4.0
Node version: 22.14.0
npm version: 10.9.2
Operating System: Artix Linux 6.13.4.zen1-1
Which language are you using?
stylesheet
What did you do?
Hi. I'm using CSS modules in React application with Vite. A lot of my <Component>.module.css
files has :global
selectors like:
:global(.some-class) {
color: yellow;
}
When I run npx eslint .
I've got a lot of
Parsing error: Identifier is expected
errors pointing to the :global
selectors.
What did you expect to happen?
No error should be shown for :global
s.
What actually happened?
Parsing error: Identifier is expected
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-opheq2hk?file=src%2Fstyle.css
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Blocked
Activity