@torpor/prettier
v1.0.8
Published
A Prettier plugin for Torpor files
Readme
torpor/prettier
A Prettier plugin for formatting Torpor .torp files.
It formats the JavaScript shell of a component with Prettier's TypeScript
parser, and the @render/@head markup and @style sections with Torpor's
own parser (tabs for indentation, attributes wrapped when over the print
width).
Installation
npm install --save-dev @torpor/prettierUsage
Add the plugin to your .prettierrc:
{
"plugins": ["@torpor/prettier"]
}Then format .torp files as usual:
npx prettier --write src/App.torp