SPB Git
3.9 KB · 49 lines json
1{2  "slug": "prettier",3  "name": "Prettier",4  "aliases": [],5  "vendor": { "name": "Prettier project", "slug": "prettier-project", "website": "https://prettier.io" },6  "homepage_url": "https://prettier.io/",7  "docs_url": "https://prettier.io/docs/",8  "repo_url": "https://github.com/prettier/prettier",9  "license_url": "https://github.com/prettier/prettier/blob/main/LICENSE",10  "product_type": "cli-tool",11  "product_status": "active",12  "summary": "Opinionated code formatter for JavaScript, TypeScript, CSS, HTML, Markdown, YAML and more that reprints code from its syntax tree with few options",13  "description": "Prettier is an open-source code formatter started by James Long and maintained by a community under the MIT license. Instead of applying style rules to existing text, it parses a file into a syntax tree and prints it back out according to a fixed layout algorithm, so formatting debates are settled by the tool rather than by configuration. It supports JavaScript, TypeScript, JSX, CSS and SCSS, HTML, Vue, JSON, GraphQL, Markdown and YAML, with plugins for other languages.\n\nPrettier is usually run on save through an editor extension and enforced in CI with a check mode or a pre-commit hook; its small option set (print width, quotes, semicolons, trailing commas and a few others) is deliberate. Limitations follow from that design: users cannot tune most layout decisions, formatting large repositories is slower than Rust-based alternatives, and it does not detect code problems, which is left to a linter such as ESLint or Biome.",14  "capabilities": ["Deterministic formatting from the syntax tree", "Support for JavaScript, TypeScript, CSS, HTML, Markdown, YAML and more", "Editor integration with format-on-save", "Check mode for CI", "Plugin API for additional languages"],15  "workflows": ["Format on save and verify in CI", "Normalize a legacy codebase in a single commit", "Pair with ESLint through eslint-config-prettier"],16  "advantages": ["Ends style discussions with a single canonical output", "Broad language coverage", "MIT license"],17  "limitations": ["Few configuration options by design", "Slower than Rust-based formatters on large trees", "Formats only; does not lint"],18  "prerequisites": ["Node.js and a package manager"],19  "audiences": ["Web developers", "Teams standardizing code style"],20  "alternatives": ["biome", "eslint"],21  "comparison_notes": "Biome implements a Prettier-compatible formatter in Rust together with a linter, so it is the usual drop-in replacement when speed matters. ESLint handles correctness rather than layout and is complementary to Prettier.",22  "categories": [{ "slug": "testing-qa", "primary": true }],23  "tags": ["javascript", "typescript", "formatting", "open-source", "cli"],24  "use_cases": [],25  "operating_systems": ["macos", "linux", "windows"],26  "execution_modes": ["local", "cloud"],27  "interfaces": ["cli", "library", "ide-extension"],28  "deployment_models": ["desktop"],29  "integrations": ["VS Code", "ESLint", "GitHub Actions", "Tailwind CSS (plugin)"],30  "data_formats": ["JavaScript", "TypeScript", "CSS", "HTML", "Markdown", "YAML", "JSON"],31  "languages": ["JavaScript"],32  "source_model": "open-source",33  "license_spdx": "MIT",34  "pricing_model": ["open-source", "free"],35  "self_hostable": true,36  "sources": [37    { "url": "https://prettier.io/", "type": "official_site", "title": "Prettier · Opinionated Code Formatter", "supports": ["name", "summary"], "checked_at": "2026-11-02" },38    { "url": "https://prettier.io/docs/", "type": "official_docs", "title": "Prettier documentation", "supports": ["capabilities"], "checked_at": "2026-11-02" },39    { "url": "https://github.com/prettier/prettier/blob/main/LICENSE", "type": "license_page", "supports": ["license_spdx", "source_model"], "checked_at": "2026-11-02" }40  ],41  "confidence": "high",42  "discovery_method": "editorial-research",43  "depth": "standard",44  "editorial_status": "reviewed",45  "visibility": "public",46  "featured": false,47  "author": "batch-B1"48}49
Files · main
Menu

Theme