- 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
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import type { ASTNode, SourceCode } from '../../types.js';
|
|
import type { AST } from 'svelte-eslint-parser';
|
|
import type { OffsetContext } from './offset-context.js';
|
|
export type AnyToken = AST.Token | AST.Comment;
|
|
export type MaybeNode = {
|
|
type: string;
|
|
range: [number, number];
|
|
loc: AST.SourceLocation;
|
|
};
|
|
export type IndentOptions = {
|
|
indentChar: ' ' | '\t';
|
|
indentScript: boolean;
|
|
indentSize: number;
|
|
switchCase: number;
|
|
alignAttributesVertically: boolean;
|
|
ignoredNodes: string[];
|
|
};
|
|
export type IndentContext = {
|
|
sourceCode: SourceCode;
|
|
options: IndentOptions;
|
|
offsets: OffsetContext;
|
|
};
|
|
/**
|
|
* Get the first and last tokens of the given node.
|
|
* If the node is parenthesized, this gets the outermost parentheses.
|
|
* If the node have whitespace at the start and the end, they will be skipped.
|
|
*/
|
|
export declare function getFirstAndLastTokens(sourceCode: SourceCode, node: ASTNode | AnyToken | MaybeNode, borderOffset?: number): {
|
|
firstToken: AST.Token;
|
|
lastToken: AST.Token;
|
|
};
|
|
/**
|
|
* Check whether the given node or token is the beginning of a line.
|
|
*/
|
|
export declare function isBeginningOfLine(sourceCode: SourceCode, node: ASTNode | AnyToken | MaybeNode): boolean;
|
|
/**
|
|
* Check whether the given node is the beginning of element.
|
|
*/
|
|
export declare function isBeginningOfElement(node: AST.SvelteText): boolean;
|