JSPM

@brightlayer-ui/prettier-config

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7022
  • Score
    100M100P100Q139633F
  • License BSD-3-Clause

Prettier config for Brightlayer UI

Package Exports

  • @brightlayer-ui/prettier-config

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@brightlayer-ui/prettier-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.