0.0.5-beta-3 • Published 2 years ago

prettier-config-assemble v0.0.5-beta-3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Assemble Prettier Configuration

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

Installation

From the root of your project, install prettier:

yarn add --dev prettier

and the Assemble prettier config:

yarn add --dev prettier-config-assemble

Configuration

Add the following script to your package.json.

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

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.

0.0.5-beta-3

2 years ago

0.0.5-beta-2

2 years ago

0.0.5-beta

2 years ago

0.0.3

2 years ago

0.0.4

2 years ago

0.0.2

3 years ago