dusk-network / eslint-config

⚙️ Dusk ESLint configuration
Mozilla Public License 2.0
3 stars 12 forks source link

Override `no-undef-init` to `off` for `.svelte` files #28

Closed kieranhall closed 8 months ago

kieranhall commented 8 months ago

Summary

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.