Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

@aboutbits/prettier-config

npm package license

AboutBit's prettier config

Requirements

  • Node.js 26 or newer (the package is ESM-only)
  • Prettier 3.4 or newer

Usage

Install the package:

npm i -D @aboutbits/prettier-config

Edit package.json:

{
  // ...
  "prettier": "@aboutbits/prettier-config"
}

Extend the preset

Create a prettier.config.js file (in a project with "type": "module", otherwise name it prettier.config.mjs):

import aboutBitsConfig from '@aboutbits/prettier-config'

/** @type {import('prettier').Config} */
export default {
  ...aboutBitsConfig,
  singleQuote: false,
}

Migrate from version 2

Version 3 replaces index.json with index.js. If you pass the config by path, update the path:

prettier --config ./node_modules/@aboutbits/prettier-config/index.js .

Build & Publish

To build and publish the package, visit the GitHub Actions page of the repository.

You can choose between two workflows:

  • Release Package to publish a new version of the package.
  • Pre-Release Package to publish a new pre-release version of the package.

Note: Pre-releases need to be supplied with a pre-id.

Note: To increment a pre-release, you have to run the normal release workflow and select "prerelease". For this action you need to already be on a pre-release version.

Information

AboutBits is a company based in South Tyrol, Italy. You can find more information about us on our website.

Support

For support, please contact info@aboutbits.it.

Credits

License

The MIT License (MIT). Please see the license file for more information.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages