web-player: add lint guardrails for imports, non-null assertions, unused props and icon sizes; refresh docs

This commit is contained in:
2026-09-24 11:54:38 +02:00
parent 975fa7e4fd
commit c041daf649
4 changed files with 97 additions and 125 deletions
+13
View File
@@ -19,6 +19,19 @@ export default ts.config(
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' }
],
'@typescript-eslint/no-non-null-assertion': 'error',
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['../*'],
message: 'Use $lib/... instead of relative parent imports.'
}
]
}
],
'svelte/no-unused-props': 'error',
'svelte/no-navigation-without-resolve': 'off',
'svelte/prefer-svelte-reactivity': 'off'
}