Global styles get Unused CSS selector
error
#577
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.48.0
What version of
eslint-plugin-svelte
are you using?2.33.0
What did you do?
Configuration
Eslint complains when using global styles with
<style global>
(Unused CSS selector "input"(css-unused-selector) (svelte/valid-compile))Using
:global(input)
instead doesn't error, which should be the same.What did you expect to happen?
No warning/error
What actually happened?
Unused CSS selector "input"(css-unused-selector) (svelte/valid-compile)
Link to GitHub Repo with Minimal Reproducible Example
https://sveltejs.github.io/eslint-plugin-svelte/playground/#eJw9jcEOgjAQRH9l7X0jFw8qIf6FFy6lLNC4dhu6xRDCv0s9eHt5k5nZjJOezM3UJ0R4Ejt5E6gAJfZBMXIefcC0ECsBYtOGOrnZRy10/mPRujLByNJZPgyADzErbEeorT5sjLxCN2LK82Ad4aXCa1WhyosCTDhkZpCF5oHlg5Pvewr30t1/R2W8MfsXNqk+ZQ==
Additional comments
The previous plugin eslint-plugin-svelte3 had the same issue, but it wasn't fixed (sveltejs/eslint-plugin-svelte3#123)
The text was updated successfully, but these errors were encountered: