@kenai-platform/prettier-config
v1.0.1
Published
A Prettier shareable config for projects using Prettier.
Downloads
35
Readme
Getting Started
Install the package
# Using NPM
npm install @kenai-platform/prettier-config
# Using YARN
yarn add @kenai-platform/prettier-config
Setup the config in your packages.json
// packages.json
{
"prettier": "@kenai-platform/prettier-config",
"dependencies": {
"prettier": "latest",
"@kenai-platform/prettier-config": "latest"
}
}
Override the prettier config
You can also override settings by importing this in a root .prettierrc.js
//.prettierrc.js
const defaultSettings = require("@kenai-platform/prettier-config")
module.exports = {
...defaultSettings,
"printWidth": 140
}
When using this method your can remove the prettier
tag from the package.json
,
If you IDE is not using the correct config the you can also be more specific by adding
it to the package.json
// packages.json
{
"prettier": ".prettierrc.js",
}