@solid-integrations/prettier
v0.0.200
Published
An integration with prettier to format code
Downloads
4
Readme
@solid-integrations/prettier
A sample primitive that is made up for templating with the following options:
createFormatted
- Provides a reactive resource - giving the prettier formatted version of the code provided.
Installation
npm install @solid-integrations/prettier
# or
yarn add @solid-integrations/prettier
# or
pnpm add @solid-integrations/prettier
How to use it
const [code, setCode] = createSignal(
`function terriblyFormatted( ){ console.log("This code is terribly formatted")}`,
);
const formattedCode = createFormatted(code);
Changelog
See CHANGELOG.md