Socket
Socket
Sign inDemoInstall

@assemble-inc/prettier-config-asm

Package Overview
Dependencies
0
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @assemble-inc/prettier-config-asm

Assemble front-end formatting rules


Version published
Weekly downloads
4
decreased by-55.56%
Maintainers
6
Created
Weekly downloads
 

Readme

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

Last updated on 04 Dec 2023

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc