Since this came up today and Thomas G. Lopes mentioned the possibility of having the issue handled by Svelte's eslint plugin I want to cross post the issue https://github.com/sveltejs/svelte/issues/11901 here:
When creating a component like this:
The prop is treated as unread variable yet it should rather be treated as an exported variable since it might still be read from outside.
Since this came up today and Thomas G. Lopes mentioned the possibility of having the issue handled by Svelte's eslint plugin I want to cross post the issue https://github.com/sveltejs/svelte/issues/11901 here:
When creating a component like this:
The prop is treated as unread variable yet it should rather be treated as an exported variable since it might still be read from outside.