It's often necessary to initialise a property as undefined as some Svelte components can have optional properties and the default value should be undefined. Without overriding this rule, the compiler will complain that components are not passing certain properties. Therefore, there should not be an error from eslint when linting .svelte files.
Summary
It's often necessary to initialise a property as
undefined
as some Svelte components can have optional properties and the default value should beundefined
. Without overriding this rule, the compiler will complain that components are not passing certain properties. Therefore, there should not be an error fromeslint
when linting.svelte
files.