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

@assemble-inc/prettier-config-asm

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assemble-inc/prettier-config-asm

Assemble front-end formatting rules

  • 0.1.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Assemble Prettier Configuration

This package contains the Assemble prettier profile used to enforce consistent code style.

You can install this package as a stand alone addition to your codebase but @assemble-inc/eslint-config-asm includes this ruleset automatically

Installation

From the root of your project, install prettier:

yarn add --dev prettier

and the Assemble prettier config:

yarn add --dev @assemble-inc/prettier-config-asm

Configuration

Add the following script to your package.json.

"scripts": {
  "format": "prettier \"src/**/**.{ts,tsx,js,jsx,json,css,scss,html}\" --check",
  "format:fix": "prettier \"src/**/**.{ts,tsx,js,jsx,json,css,scss,html}\" --write"
},
"prettier": "@assemble-inc/prettier-config-asm",

The --write flag will automatically fix all code style violations.

You can update the file extensions list to suit the particular files you would like to format.

Usage

To format the files in your project, run yarn format.

FAQs

Package last updated on 04 Dec 2023

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