Acast Prettier Config

raw JSON →
1.1.0 verified Sat Apr 25 auth: no javascript

Shared Prettier configuration from Acast. Version 1.1.0 is stable. Release cadence is low, triggered by manual tagging. Differentiator: simple package.json reference, no need for separate config file. Suitable for Acast projects or as a base for custom Prettier configs.

error Cannot find module 'acast-prettier-config'
cause Missing npm install or incorrect package.json configuration.
fix
Run npm install --save-dev acast-prettier-config and ensure devDependencies includes the package.
gotcha The shared config may override project-specific Prettier settings if not extended properly.
fix Use a .prettierrc.js file with module.exports = { ...require('acast-prettier-config'), ...customOptions } to merge configs.
npm install acast-prettier-config
yarn add acast-prettier-config
pnpm add acast-prettier-config

Installs the package and sets prettier config in package.json. Prettier will automatically extend the shared config.

{
  "name": "my-project",
  "devDependencies": {
    "acast-prettier-config": "^1.0.0"
  },
  "prettier": "acast-prettier-config"
}