refactor(observability): remove console.log from tags proxy and enforce no-console lint rule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,10 @@ export default defineConfig(
|
|||||||
'no-undef': 'off',
|
'no-undef': 'off',
|
||||||
// This rule is designed for Svelte 5's own routing system using resolve().
|
// This rule is designed for Svelte 5's own routing system using resolve().
|
||||||
// In SvelteKit, <a href> and goto() from $app/navigation are the correct patterns — resolve() is not needed.
|
// In SvelteKit, <a href> and goto() from $app/navigation are the correct patterns — resolve() is not needed.
|
||||||
'svelte/no-navigation-without-resolve': 'off'
|
'svelte/no-navigation-without-resolve': 'off',
|
||||||
|
// Prevents accidental console.log left in source. console.warn and console.error
|
||||||
|
// are still permitted for intentional server-side logging (e.g. hooks.server.ts).
|
||||||
|
'no-console': ['error', { allow: ['warn', 'error'] }]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -71,6 +74,13 @@ export default defineConfig(
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// E2E tests use console.log for diagnostic output — allow it there.
|
||||||
|
files: ['e2e/**'],
|
||||||
|
rules: {
|
||||||
|
'no-console': 'off'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
files: ['**/*.spec.ts', '**/*.test.ts'],
|
files: ['**/*.spec.ts', '**/*.test.ts'],
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ export const GET: RequestHandler = async ({ url, fetch }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
console.log('Tags Data', data);
|
|
||||||
|
|
||||||
// 4. Daten zurück an den Browser schicken
|
// 4. Daten zurück an den Browser schicken
|
||||||
return json(data);
|
return json(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user