name: prettier
binary: prettier
aliases: []
category:
- formatter
lang:
- javascript
- typescript
- css
- html
- json
- markdown
- yaml
summary: Opinionated code formatter for JavaScript and related formats.
homepage: https://github.com/prettier/prettier
docs: https://prettier.io/docs/cli
detect:
version_args:
- --version
local:
files:
- .prettierrc
- .prettierrc.json
- .prettierrc.yml
- .prettierrc.yaml
- prettier.config.js
- prettier.config.cjs
- prettier.config.mjs
dirs: []
package_json:
package_manager_prefixes: []
use_when:
- Format JavaScript, TypeScript, CSS, Markdown, or JSON files
avoid_when:
- The repository uses another formatter for the target files
risk:
level: medium
effects:
- write_files
requires_auth: false
destructive: false
confirmation_required_for:
- formatting large unrelated trees
guardrails:
- Use --check when only verifying formatting.