Skip to main content

Variable: default

const default: Config

Defined in: prettier.config.js:21

The only Prettier configuration to use in your project’s package.json.

Remarks

  • Enforces consistent formatting across all projects.
  • Matches ESLint rules to avoid conflicts (e.g., via eslint-config-prettier).
  • Intended to be the single source of truth — extend or override locally only if needed.

Example

  • Add this line of code to your project's package.json:
"prettier": "@mohammad_obed/config/prettier.config"

See

Prettier Options