{"schemaVersion":1,"id":"prettier","name":"Prettier","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/prettier/","officialUrl":"https://github.com/prettier/prettier","isCatalog":false,"description":"An automatic code formatter for multiple languages: gives files a consistent style and reduces formatting disputes during review.","tasks":["Apply consistent formatting to source code","Apply formatting and inspect the substantive diff"],"categoryIds":["infrastructure","quality"],"subcategoryIds":["infrastructure.developer","quality.review"],"tags":["Prettier","build","Development"],"aliases":["prettier/prettier","prettier-code-formatter"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Apply consistent formatting to source code","chooseWhen":["Apply consistent formatting to source code","Apply formatting and inspect the substantive diff"],"considerInstead":[],"requirements":["The documentation recommends quoting globs so Prettier expands them and keeping shared settings in a configuration file."],"limitations":["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."],"faq":[{"question":"What can you use for free in Prettier?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Prettier?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Prettier?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Prettier?","answer":"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."},{"question":"How do you check Prettier formatting in CI without rewriting files?","answer":"--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."}],"related":[],"sources":["https://github.com/prettier/prettier","https://raw.githubusercontent.com/prettier/prettier/HEAD/README.md","https://raw.githubusercontent.com/prettier/prettier/HEAD/LICENSE","https://www.open-source-tools.com/","https://dev.to/codewithshahan/11-open-source-tools-i-install-on-every-new-development-machine-1me5","https://prettier.io/docs/cli"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Apply consistent formatting to source code.","inputs":["A repository, package manifests, and configuration.","A compatible runtime and the target build command."],"steps":["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."],"checks":["A clean copy of the project reproduces the result.","Errors produce a nonzero exit code and clear diagnostics."]},"sources":["https://github.com/prettier/prettier","https://raw.githubusercontent.com/prettier/prettier/HEAD/README.md","https://raw.githubusercontent.com/prettier/prettier/HEAD/LICENSE","https://www.open-source-tools.com/","https://dev.to/codewithshahan/11-open-source-tools-i-install-on-every-new-development-machine-1me5","https://prettier.io/docs/cli"],"checkedAt":"2026-10-06","reviewScope":"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.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Build / code quality tool","kind":"tool","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/prettier/prettier","label":"Official source"},{"url":"https://raw.githubusercontent.com/prettier/prettier/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/prettier/prettier/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://dev.to/codewithshahan/11-open-source-tools-i-install-on-every-new-development-machine-1me5","label":"Catalog / discovery source"},{"url":"https://prettier.io/docs/cli","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}