0.1.13 • Published 5 months ago

@assemble-inc/prettier-config-asm v0.1.13

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

0.1.10

5 months ago

0.1.11

5 months ago

0.1.12

5 months ago

0.1.13

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.9

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.1.2

5 months ago

0.1.1

7 months ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago