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

@alloy-js/prettier-plugin-alloy

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alloy-js/prettier-plugin-alloy

Prettier plugin for Alloy JSX/TSX files that disable formatting for JSX elements

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Prettier plugin for Alloy JSX/TSX files

Prettier plugin that disable the automatic formatting of JSX elements. This still allows the rest to be formatted but allows keeping whitespace that are important for Alloy.

Usage

npm install --save-dev @alloy-js/prettier-plugin-alloy

Then, add the following to your .prettierrc.yaml file:

plugins:
  - "@alloy-js/prettier-plugin-alloy"

Override .jsx or .tsx formatting

If you want to override the formatting for .jsx or .tsx files, you can use the overrides option in your .prettierrc.yaml file:

overrides:
  - files: "*.tsx"
    options:
      parser: alloy-ts
  - files: "*.jsx"
    options:
      parser: alloy-js

Override only .alloy.tsx or .alloy.jsx files:

overrides:
  - files: "*.alloy.tsx"
    options:
      parser: alloy-ts
  - files: "*.alloy.jsx"
    options:
      parser: alloy-js

FAQs

Package last updated on 20 Sep 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