-
Notifications
You must be signed in to change notification settings - Fork 44
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
eslint-disable/enable in templates #134
Comments
This would be helpful as a workaround for my just-reported #174. Right now I think my only fix is to exclude my left/top/width variable names. |
I just discovered the svelte-ignore magic comments merged in sveltejs/svelte#3351, which addressed the a11y-autofocus warning in my login form. They only apply to the following element (as opposed to the multi-line surround proposed here), but it may be sufficient for most use cases. I'm new to this environment, so apologies if svelte-ignore and the proposed eslint-disable are covering different validators. |
I would like to fix this problem - I opened a question on StackOverflow about this issue here: https://stackoverflow.com/q/73747454/173630 |
Actually, I just discovered the |
Even though it's the "official" svelte eslint plugin, `eslint-plugin-svelte` has problems and is in the process of deprecation: * sveltejs/eslint-plugin-svelte3#134 * sveltejs/eslint-plugin-svelte3#184
#22 appeared to request this, but it looks like it was resolved in a different way.
I think it would be helpful to have support for
<!-- eslint-disable/enable ... -->
in the templates to disable rules around specific parts of a template.The text was updated successfully, but these errors were encountered: