- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
33 lines
855 B
JavaScript
33 lines
855 B
JavaScript
import { createRule } from '../utils/index.js';
|
|
export default createRule('no-inspect', {
|
|
meta: {
|
|
docs: {
|
|
description: 'Warns against the use of `$inspect` directive',
|
|
category: 'Best Practices',
|
|
recommended: true,
|
|
default: 'warn'
|
|
},
|
|
schema: [],
|
|
messages: {
|
|
unexpected: 'Do not use $inspect directive'
|
|
},
|
|
type: 'suggestion',
|
|
conditions: [
|
|
{
|
|
svelteVersions: ['5'],
|
|
runes: [true, 'undetermined']
|
|
}
|
|
]
|
|
},
|
|
create(context) {
|
|
return {
|
|
Identifier(node) {
|
|
if (node.name !== '$inspect') {
|
|
return;
|
|
}
|
|
context.report({ messageId: 'unexpected', node });
|
|
}
|
|
};
|
|
}
|
|
});
|