MCPcopy
hub / github.com/tailwindlabs/prettier-plugin-tailwindcss / format

Function format

tests/utils.ts:42–58  ·  view source on GitHub ↗
(str: string, options: prettier.Options = {})

Source from the content-addressed store, hash-verified

40export let pluginPath = path.resolve(__dirname, '../dist/index.mjs')
41
42export async function format(str: string, options: prettier.Options = {}) {
43 let result = await prettier.format(str, {
44 semi: false,
45 singleQuote: true,
46 printWidth: 9999,
47 parser: 'html',
48 ...options,
49 plugins: [
50 //
51 ...(options.plugins ?? []),
52 // plugin,
53 pluginPath,
54 ],
55 })
56
57 return result.trim()
58}

Callers 3

fixtures.test.tsFile · 0.90
format.test.tsFile · 0.85
plugins.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…