-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
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
Ignore style="..."
attributes
#38
Comments
Thank you for posting this issue. I'm not sure if we need to add that ignore Also, can't you use |
Hi! Thanks for getting back to me on this. I didn't know about the single line rule, that will probably fix this particular scenario. I'll give it a shot. I'm not sure if there are any other scenarios where this option would come in handy, so perhaps I should close the ticket and reopen it if I run into any other scenarios? In response to the post css ignore comments however, it would be extremely messy if they were required for every single inline style rule across all component files, so I don't really think that's a solution. |
I don't think we need the option to ignore the attribute. If you think need it, open a new issue and explain in detail why you need it. |
It looks like these exceptions don't work correctly for inline svelte "custom-property-empty-line-before": "always" This throws two errors: I'd expect the following config to fix these errors (actually just the "custom-property-empty-line-before": [
"always",
{
"except": [ "first-nested" ],
"ignore": [ "inside-single-line-block" ]
}
] But it has no effect. Adding The only two options I can see for svelte projects are:
Neither of which are ideal |
I couldn't find any information about this anywhere, so I might be missing something obvious - sorry if that's the case.
Is there any way to have the parser handle
<style>
tags but not<div style="...">
attributes? I've set this up with a Svelte project, and while the linting is working as I'd hoped in my main style tags, it seems a bit bizarre for the linter to flag things like "Expected empty line before custom property" in a single-line style attribute.Is there an option that can be configured, or have I messed up some default? And if not, is it something that could be corrected?
Thanks!
The text was updated successfully, but these errors were encountered: