You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah I see. Yes, CSSTree doesn't yet support nested rule declarations, that's why you're getting the error. For now, you'll need to use tolerant parsing.
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:When I run
npx eslint .
I've got a lot oferrors pointing to the
:global
selectors.What did you expect to happen?
No error should be shown for
:global
s.What actually happened?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-opheq2hk?file=src%2Fstyle.css
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: