@feedzai/prettier-config

1.0.0 • Public • Published

@feedzai/prettier-config

Feedzai's Prettier configuration.

Intro

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

Usage

First, install Prettier and @feedzai/prettier-config locally:

npm install --save-dev prettier @feedzai/prettier-config

or

yarn add --dev prettier @feedzai/prettier-config

or

pnpm add --save-dev prettier @feedzai/prettier-config

After that, edit the package.json file (as below) or one of the supported configuration files:

{
  // ...
  "prettier": "@feedzai/prettier-config"
}

For a quick tour of how to use Prettier, check out the Install page in the documentation.

Development

After changes, sort the package.json file and run Prettier:

npx sort-package-json package.json
npx prettier --config ./index.json --write ./*.json

Package Sidebar

Install

npm i @feedzai/prettier-config

Weekly Downloads

6

Version

1.0.0

License

none

Unpacked Size

2.06 kB

Total Files

3

Last publish

Collaborators

  • fdz.diogo.duarte
  • fdz.luis.cardoso
  • fdz.eduardo.ferreira
  • fdz.rita.costa
  • services-accounts