🚨 Format code
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user