svelte-prettier-eslint

Svelte Prettier Eslint

Testing a way to use prettier in the script tag of svelte.

Uses parse5 to get script tags from svelte code.

parseFragment avoids the creation of html, head and body tags

Use node test.js to see the code being prettied in the console.

Top categories

Loading Svelte Themes