I'm working with svelte's eslint plugin, and I'd like to fix an issue where the plugin is not respecting <!-- eslint-disable / eslint-enable -->
in svelte's templates. In other words, this problem here: https://github.com/sveltejs/eslint-plugin-svelte3/issues/134
In researching how to make this work, there is an ignore_styles
flag that wipes <style>
in the pre-processing stage. (https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/src/preprocess.js#L39)
I can imagine making a similar regex to wipe anything within an /* eslint-disable */
block. But is this the best way to do it?
Any examples of working with this in similar plugins would be appreciated - I'm new to eslint plugins.