Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-marko

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-marko

A prettier plugin for parsing and printing Marko files

  • 3.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
607
decreased by-8.45%
Maintainers
6
Weekly downloads
 
Created
Source


prettier-plugin-marko
TypeScript Styled with prettier Build status NPM Version Downloads

Note: For prettier@2 or below use prettier-plugin-marko@2.

A Prettier plugin for parsing and printing Marko files.

Installation

npm

npm install prettier prettier-plugin-marko -D

yarn

yarn add prettier prettier-plugin-marko -D

Usage

NPM 6

npx --no-install prettier --write "**/*.marko"

NPM 7

npm exec -- prettier --write "**/*.marko"

Yarn

yarn prettier  --write "**/*.marko"

Editors

Editors such as Atom and VSCode provide plugins for calling Prettier directly from your editor.

If you'd like to use these plugins without installing prettier-plugin-marko in the project, you can also install prettier-plugin-marko globally with either npm, yarn or your package manager choice.

Options

On top of Prettier's options, there are a few additional options picked up by this plugin.

markoSyntax: "auto" | "html" | "concise"

Marko supports both an html like and concise syntaxes. By default this plugin will try to detect the syntax you are already using and output a formatted document in that syntax.

You can overide the default ("auto") to enforce that all templates are formatted to the syntax of your choosing.

markoAttrParen: boolean

For the most part Marko is very flexible when it comes to the expressions uses within attributes. By default this plugin will not wrap attribute values in parenthesis unless absolutely necessary. By setting this value to true it will instead output parenthesis whenever the attribute value contains any unenclosed whitespace.

Code of Conduct

This project adheres to the eBay Code of Conduct. By participating in this project you agree to abide by its terms.

Keywords

FAQs

Package last updated on 08 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc