More Premium Hugo Themes Premium Vue Themes

Markup_fmt

Configurable HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks and Vento formatter with dprint integration.

Markup_fmt

Configurable HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks and Vento formatter with dprint integration.

Author Avatar Theme by g-plane
Github Stars Github Stars: 134
Last Commit Last Commit: May 11, 2025 -
First Commit Created: Nov 5, 2024 -
default image

Overview:

The content discusses a code formatter that provides options for Vue and Svelte users to enhance formatting. It recommends enabling specific options in the formatter and disabling corresponding rules in ESLint plugins to improve performance. The integration with dprint is highlighted, supporting formatting for various HTML syntaxes and providing plugins for code within script and style tags.

Features:

  • Vue and Svelte Support: Provides options like vBindStyle, vOnStyle, svelteAttrShorthand, and svelteDirectiveShorthand.
  • Improved ESLint Performance: Enabling specific options in the formatter can make ESLint faster by reducing the number of executed rules.
  • dprint Integration: Supports HTML syntax for files like HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks, and Vento.
  • Additional Plugins: Requires dprint plugins such as dprint-plugin-typescript for TypeScript/JavaScript and Malva for CSS/SCSS/Sass/Less code.

Installation:

To install the theme and required plugins, follow these steps:

install dprint-plugin-typescript
install malva
install dprint-plugin-json
install biome

Update your dprint.json with the necessary configurations. Refer to the dprint CLI documentation for detailed usage.

Summary:

This content emphasizes the importance of configuring the code formatter for Vue and Svelte users to enhance code readability and maintainability. By enabling specific options and integrating with dprint, users can effectively format HTML, JavaScript, CSS, and JSON code in various files. Overall, the tool aims to streamline the formatting process and improve coding practices for developers using Vue and Svelte frameworks.