🚨 Format code

This commit is contained in:
2025-09-24 21:44:42 +08:00
parent 1462d8a753
commit f5bfff80b7
76 changed files with 839 additions and 863 deletions

View File

@@ -4,7 +4,7 @@
* This plugin provides support for formatting multiple web languages using the web_fmt WASM implementation.
* web_fmt is a comprehensive formatter for web development supporting HTML, CSS, JavaScript, and JSON.
*/
import type { Plugin, Parser, Printer, ParserOptions } from 'prettier';
import type { Plugin, Parser, Printer } from 'prettier';
// Import the web_fmt WASM module
import webInit, { format } from './web_fmt_vite.js';

View File

@@ -1,5 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export function format_json(src: string, config?: JsonConfig): string;
export function format_markup(src: string, filename: string, config?: MarkupConfig): string;
export function format_script(src: string, filename: string, config?: ScriptConfig): string;

View File

@@ -1,5 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export const format_json: (a: number, b: number, c: number, d: number) => void;
export const format_markup: (a: number, b: number, c: number, d: number, e: number, f: number) => void;