AboutBit's prettier config
- Node.js 26 or newer (the package is ESM-only)
- Prettier 3.4 or newer
Install the package:
npm i -D @aboutbits/prettier-configEdit package.json:
{
// ...
"prettier": "@aboutbits/prettier-config"
}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,
}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 .To build and publish the package, visit the GitHub Actions page of the repository.
You can choose between two workflows:
Release Packageto publish a new version of the package.Pre-Release Packageto 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.
AboutBits is a company based in South Tyrol, Italy. You can find more information about us on our website.
For support, please contact info@aboutbits.it.
The MIT License (MIT). Please see the license file for more information.