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
I am honestly not sure what should happen. We can't parse dynamic class names, so at this point probably the only thing you can do is give up on checking any class names? (Same thing would happen with IDs). At best, we could try to parse some prefix/suffix from the dynamic class name and only ignore those? @ota-meshi@baseballyama What do you think?
I can imagine adding a rule flag that would switch between giving up and the current behaviour, but I don't really think the current behaviour is useful in many ways (it essentially bans dynamic class/ID names, just in a more stupid way)...
What actually happened?
3 errors saying I should use a type selector instead
Link to GitHub Repo with Minimal Reproducible Example
N/A, will make a PR instead once agreed on a solution.
Additional comments
No response
The text was updated successfully, but these errors were encountered:
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9
What version of
eslint-plugin-svelte
are you using?3.0.2
What did you do?
What did you expect to happen?
I am honestly not sure what should happen. We can't parse dynamic class names, so at this point probably the only thing you can do is give up on checking any class names? (Same thing would happen with IDs). At best, we could try to parse some prefix/suffix from the dynamic class name and only ignore those? @ota-meshi @baseballyama What do you think?
I can imagine adding a rule flag that would switch between giving up and the current behaviour, but I don't really think the current behaviour is useful in many ways (it essentially bans dynamic class/ID names, just in a more stupid way)...
What actually happened?
3 errors saying I should use a type selector instead
Link to GitHub Repo with Minimal Reproducible Example
N/A, will make a PR instead once agreed on a solution.
Additional comments
No response
The text was updated successfully, but these errors were encountered: