chore: update to ESLint 10

no-useless-assignment joined the recommended set and does not understand runes,
reading every `$bindable()` prop default as a dead store; off for Svelte files.
Carries @eslint/js, @eslint/compat, globals and @types/node with it.
This commit is contained in:
2026-08-17 16:21:43 -04:00
parent b33f57d942
commit e898069b03
3 changed files with 177 additions and 263 deletions
+7
View File
@@ -37,6 +37,13 @@ export default defineConfig(
files: ['src/lib/components/ui/**'],
rules: { 'svelte/no-navigation-without-resolve': 'off' }
},
{
// no-useless-assignment joined eslint:recommended in ESLint 10, and its flow analysis
// does not model runes: it reads `let { ref = $bindable(null) } = $props()` as a value
// that is never read. Deleting the default, as it suggests, breaks the binding.
files: ['**/*.svelte'],
rules: { 'no-useless-assignment': 'off' }
},
{
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
languageOptions: {