1.0.2 • Published 2 years ago

xtra-ui-prettier-config v1.0.2

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 years ago

Xtra UI Prettier Configuration

npm.io

This package contains the Xtra UI prettier and editorconfig profiles used to enforce consistent code style.

Installation

From the root of your project, install prettier:

yarn add --dev prettier

and the Xtra UI prettier config:

yarn add --dev xtra-ui-prettier-config

Configuration

Add the following script to your package.json.

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

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 prettier.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.3

2 years ago