Prettier config for Brightlayer UI

Usage no npm install needed!

<script type="module">
  import brightlayerUiPrettierConfig from 'https://cdn.skypack.dev/@brightlayer-ui/prettier-config';


Brightlayer UI Prettier Configuration

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


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


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.


To format the files in your project, run yarn prettier.