Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@brightlayer-ui/prettier-config

brightlayer-ui17.6kBSD-3-Clause1.0.3

Prettier config for Brightlayer UI

prettier, prettierconfig, brightlayer-ui, formatting

readme

Brightlayer UI Prettier Configuration

This package contains the Brightlayer 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 Brightlayer UI prettier config:

yarn add --dev @brightlayer-ui/prettier-config

Configuration

Add the following script to your package.json.

"prettier": "@brightlayer-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.

changelog

Changelog

v1.0.3 (October 19, 2021)

Changed

  • Changed package namespace from @pxblue to @brightlayer-ui.

Package Migration Notice

Previous versions listed after this indicator refer to our deprecated @pxblue packages.


v1.0.3 (April 27, 2021)

Added

  • Added github information to the package.json

v1.0.2 (January 21, 2020)

Initial Release