# Prettier

[BASE product page](<https://base.akulich.dev/en/library/prettier/>) · [Resource](<https://github.com/prettier/prettier>)

ID: prettier · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

An automatic code formatter for multiple languages: gives files a consistent style and reduces formatting disputes during review\.

## Type

Build / code quality tool

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/prettier/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/prettier/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/prettier/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/prettier/#resource-access>)

Code and local use under MIT\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/prettier/#resource-tasks>)

- Apply consistent formatting to source code
- Apply formatting and inspect the substantive diff

## Category IDs

- infrastructure
- quality

## Subcategory IDs

- infrastructure\.developer
- quality\.review

## Tags

- Prettier
- build
- Development

## Also known as

- prettier/prettier
- prettier\-code\-formatter

## [Selection purpose](<https://base.akulich.dev/en/library/prettier/#resource-selection>)

Apply consistent formatting to source code

## [Choose this when](<https://base.akulich.dev/en/library/prettier/#resource-selection>)

- Apply consistent formatting to source code
- Apply formatting and inspect the substantive diff

## [Requirements](<https://base.akulich.dev/en/library/prettier/#resource-selection>)

- The documentation recommends quoting globs so Prettier expands them and keeping shared settings in a configuration file\.

## [Limitations](<https://base.akulich.dev/en/library/prettier/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: MIT for the code; dependencies have separate licenses\.
- \-\-debug\-check cannot be combined with \-\-write\. The cache does not account for plugin versions or implementations: after updating them, the documentation recommends deleting the cache\.

## [Questions before use](<https://base.akulich.dev/en/library/prettier/#resource-faq>)

### What can you use for free in Prettier?

Code and local use under MIT\.

### What additional costs might arise with Prettier?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for Prettier?

MIT for the code; dependencies have separate licenses\.

### How do you get started with Prettier?

Agree on formatter options and the project's file set\. Apply formatting and inspect the substantive diff\. Add the workflow to scripts or CI with a clear report\.

### How do you check Prettier formatting in CI without rewriting files?

\-\-check lists unformatted files and returns exit code 1; 0 means a successful check, and 2 means a Prettier error\. \-\-write separately rewrites files, while \-\-list\-different lists differing filenames\.

## Sources for the selection guide

- [https://github\.com/prettier/prettier](<https://github.com/prettier/prettier>)
- [https://raw\.githubusercontent\.com/prettier/prettier/HEAD/README\.md](<https://raw.githubusercontent.com/prettier/prettier/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/prettier/prettier/HEAD/LICENSE](<https://raw.githubusercontent.com/prettier/prettier/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://dev\.to/codewithshahan/11\-open\-source\-tools\-i\-install\-on\-every\-new\-development\-machine\-1me5](<https://dev.to/codewithshahan/11-open-source-tools-i-install-on-every-new-development-machine-1me5>)
- [https://prettier\.io/docs/cli](<https://prettier.io/docs/cli>)

## [Possible workflow](<https://base.akulich.dev/en/library/prettier/#resource-scenario>)

Apply consistent formatting to source code\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A repository, package manifests, and configuration\.
- A compatible runtime and the target build command\.

## Steps

1. Agree on formatter options and the project's file set\.
2. Apply formatting and inspect the substantive diff\.
3. Add the workflow to scripts or CI with a clear report\.

## Check your result

- A clean copy of the project reproduces the result\.
- Errors produce a nonzero exit code and clear diagnostics\.

## [License](<https://base.akulich.dev/en/library/prettier/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/prettier/#resource-sources>)

- [Official source](<https://github.com/prettier/prettier>)
- [Official source](<https://raw.githubusercontent.com/prettier/prettier/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/prettier/prettier/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Catalog / discovery source](<https://dev.to/codewithshahan/11-open-source-tools-i-install-on-every-new-development-machine-1me5>)
- [Official source](<https://prettier.io/docs/cli>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
