@dotsharpspace/prettier-config
v1.0.1
Published
Shared Prettier config for DotSharpSpace Angular projects
Downloads
1
Maintainers
Readme
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"
}