- 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
32 lines
919 B
JavaScript
32 lines
919 B
JavaScript
import { createRule } from '../utils/index.js';
|
|
export default createRule('no-useless-children-snippet', {
|
|
meta: {
|
|
docs: {
|
|
description: "disallow explicit children snippet where it's not needed",
|
|
category: 'Best Practices',
|
|
recommended: true
|
|
},
|
|
schema: [],
|
|
messages: {
|
|
uselessSnippet: 'Found an unnecessary children snippet.'
|
|
},
|
|
type: 'suggestion',
|
|
conditions: [
|
|
{
|
|
svelteVersions: ['5']
|
|
}
|
|
]
|
|
},
|
|
create(context) {
|
|
return {
|
|
SvelteSnippetBlock(node) {
|
|
if (node.parent.type === 'SvelteElement' &&
|
|
node.id.name === 'children' &&
|
|
node.params.length === 0) {
|
|
context.report({ node, messageId: 'uselessSnippet' });
|
|
}
|
|
}
|
|
};
|
|
}
|
|
});
|