@hypernym/prettier-config

3.0.0 • Public • Published

@hypernym/prettier-config

Hypernym's internal config for Prettier.

Repository | Package | Releases | Discussions

npm i -D @hypernym/prettier-config

Setup

Add a format command for manual formatting (optionally):

// package.json

{
  "scripts": {
    "format": "prettier --write .",
  }
}

Usage

Simple

// package.json

{
  "prettier": "@hypernym/prettier-config"
}
// prettier.config.js

export { default } from '@hypernym/prettier-config'

Custom

// prettier.config.js

import base from '@hypernym/prettier-config'

const config = {
  ...base,
  singleQuote: false,
  // ...
}

export default config

Community

Feel free to ask questions or share new ideas.

Use the official discussions to get involved.

License

Developed in 🇭🇷 Croatia.

Released under the MIT license.

© Hypernym Studio

Package Sidebar

Install

npm i @hypernym/prettier-config

Weekly Downloads

3

Version

3.0.0

License

MIT

Unpacked Size

3.54 kB

Total Files

5

Last publish

Collaborators

  • ivodolenc
  • hypernym