Skip to content
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 configuration to ignore $m: label #13

Open
davidsavoie1 opened this issue Aug 30, 2021 · 2 comments
Open

ESLint configuration to ignore $m: label #13

davidsavoie1 opened this issue Aug 30, 2021 · 2 comments

Comments

@davidsavoie1
Copy link

davidsavoie1 commented Aug 30, 2021

Is there a way to configure ESLint to ignore the label $m: declaration? Right now, I get a '$m:' is defined but never used. no-unused-labels error. I know I could silence this type of error entirely as a rule Svelte override, but I am wondering if there's a way to disabled only this specific one, just as it is done for $: labels. Thanks in adavance!

@zodern
Copy link
Owner

zodern commented Sep 6, 2021

This would probably have to be an option for eslint-plugin-svelte3 since it handles removing lint errors for the $: labels. It might be possible to create a separate eslint plugin to handle the $m labels, but I haven't found a way to so far.

@davidsavoie1
Copy link
Author

OK, I filed a new issue about that there. We'll see what comes out of it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants