1.0.1 • Published 2 years ago

@dotsharpspace/prettier-config v1.0.1

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

DotSharpSpace prettier default configuration

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.

The @dotsharpspace/prettier-config contains custom configuration for prettier npmjs package.

Installation

Install prettier :

NPM

npm install --save-dev prettier

YARN

yarn add prettier --dev

Install @dotsharpspace/prettier-config :

NPM

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

YARN

yarn add @dotsharpspace/prettier-config --dev

Configuration

The configuration of the project can be done through package.json file or .prettierrc.json file

package.json example :

You need to add prettier configuration :

{
    "name": "some project name",
    "version": "current project version",
    "prettier": "@dotsharpspace/prettier-config",
    ...
}

.prettierrc.json example :

Or just add configuration in .prettierrc.json :

{
    "prettier": "@dotsharpspace/prettier-config"
}