Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1549

Stop no-unused-expressions on svelte $ assignments

$
0
0

I'm trying to setup an ESLint using the libs eslint, typescript-eslint (along with its parser) & eslint-plugin-svelte, but each time I write something along the lines of

$: somevar, somefunction();

ESLint (@typescript-eslint) triggers

@typescript-eslint/no-unused-expressions

I would like to find a way not to remove this rule (but remove this warning) as it seems like a useful for other usecases than this one, but haven't found any solution yet.


Viewing all articles
Browse latest Browse all 1549

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>