1.0.4 • Published 3 years ago

@muhortov/prettier-config v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Prettier config

Configuration for the Prettier code formatter.

Installation

yarn add --dev @muhortov/prettier-config

Usage

To enable prettier in your project add the prettier key to your package.json file:

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

To be able to format your files add the following command to the package.json file

{
  // ...
  "scripts": {
    // ...
    "format": "prettier --write '**/*.{ts,tsx,js,jsx,vue,json,html,css,sass,scss,less,md,yaml,yml}'"
  }
}

You can now run yarn format to format your code.

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago