Skip to content

hypernym-studio/prettier-config

Repository files navigation

@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