@kenai-platform/prettier-config

1.0.1 • Public • Published

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",
}

Package Sidebar

Install

npm i @kenai-platform/prettier-config

Weekly Downloads

8

Version

1.0.1

License

ISC

Unpacked Size

2.06 kB

Total Files

4

Last publish

Collaborators

  • jad_kenai
  • nemuksis