@hypernym/prettier-config

3.0.1 • 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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @hypernym/prettier-config

    Weekly Downloads

    9

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    3.54 kB

    Total Files

    5

    Last publish

    Collaborators

    • ivodolenc
    • hypernym