{"id":20253,"library":"ory-prettier-styles","title":"ORY Prettier Styles","description":"Shareable Prettier configuration used across all ORY projects, currently at v1.3.0 (2023). It enforces consistent code formatting via a single config reference or with custom overrides. Compared to creating your own Prettier config from scratch, this package provides a battle-tested set of defaults used by ORY's extensive open-source ecosystem, including specific rules for JSON, Markdown, and YAML. The package also includes a GitHub Action for automated format checking in CI/CD pipelines. Release cadence is ad-hoc; minor versions have introduced breaking changes to formatting defaults (e.g., restoring standard width for Markdown, switching to double quotes).","status":"active","version":"1.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/ory/prettier-styles","tags":["javascript"],"install":[{"cmd":"npm install ory-prettier-styles","lang":"bash","label":"npm"},{"cmd":"yarn add ory-prettier-styles","lang":"bash","label":"yarn"},{"cmd":"pnpm add ory-prettier-styles","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Add this field to your package.json to use the unmodified ORY styles.","wrong":"No known common mistake.","symbol":"package.json config","correct":"\"prettier\": \"ory-prettier-styles\""},{"note":"When using CommonJS, don't forget to spread the config if you want to add overrides. The config is an object, not a function.","wrong":"module.exports = require('ory-prettier-styles')","symbol":"require in .prettierrc.js","correct":"module.exports = { ...require('ory-prettier-styles'), // overrides }"},{"note":"Use the major version tag @v1 to get compatible updates. Pinning to a minor version may miss security fixes.","wrong":"uses: ory/prettier-styles@v1.3.0","symbol":"GitHub Action","correct":"uses: ory/prettier-styles@v1"}],"quickstart":{"code":"// In package.json:\n{\n  \"prettier\": \"ory-prettier-styles\"\n}\n\n// Or in .prettierrc.js:\nmodule.exports = {\n  ...require('ory-prettier-styles'),\n  // singleQuote: true\n}","lang":"javascript","description":"Sets up Prettier with ORY's styles either via package.json string or with a custom .prettierrc.js."},"warnings":[{"fix":"If you relied on the previous custom width, add 'printWidth: 80' or set a different value in your overrides.","message":"v1.3.0 changed Markdown formatting width from a custom value back to Prettier's default (80).","severity":"breaking","affected_versions":">=1.3.0"},{"fix":"If you prefer single quotes, override 'singleQuote: true' in your .prettierrc.js.","message":"v1.3.0 uses default quote style (double quotes) instead of single quotes.","severity":"breaking","affected_versions":">=1.3.0"},{"fix":"Consider pinning to a specific version (e.g., @v1.2.0) to avoid unexpected formatting changes.","message":"The GitHub Action @v1 tag points to the latest v1.x release, which may contain breaking changes in formatting defaults.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use .prettierrc.js or similar to extend and override.","message":"If you use the package.json 'prettier' key, you cannot override individual rules without switching to a configuration file.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install ory-prettier-styles --save-dev' or 'yarn add ory-prettier-styles -D'.","cause":"Package not installed or module resolution fails.","error":"Cannot find module 'ory-prettier-styles'"},{"fix":"Use module.exports = { ...require('ory-prettier-styles'), /* overrides */ }.","cause":"Using module.exports = ory-prettier-styles instead of spreading.","error":"Invalid configuration file: The exported value is not a function or object."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}