@tutods/prettier-config
v0.3.1
Published
Prettier configuration to use in web projects, like React, Node, etc.
Downloads
15
Maintainers
Readme
Prettier Config (@tutods/prettier-config
)
▶️ Installation
Using Yarn:
yarn add -D @tutods/prettier-config
Using NPM:
npm i -D @tutods/prettier-config
Using PNPM:
pnpm add -D @tutods/prettier-config
📄 Usage
This package exports one configuration, so to use it, you only need to extend it. For that, you have two possible ways of do it.
Via package.json
On this way, you need to access your package.json
and add the following values:
{
// ...
"prettier": "@tutods/prettier.config"
// ...
}
Via .prettierrc
(json
format)
Simple as create the .prettierrc
file and paste:
"@tutods/prettier-config"
Don't forget that you can use my ESLint config to add Prettier validations on your code.