zodern / melte

Svelte compiler for Meteor with built in tracker integration and HMR
MIT License
33 stars 14 forks source link

ESLint configuration to ignore `$m:` label #13

Open davidsavoie1 opened 3 years ago

davidsavoie1 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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