How do I make a local formatting failure match the CI job?
prettier/prettier
Prettier gives a frontend team a repeatable formatting check for supported files. Run it against a small group of fixtures to separate formatting changes from behavior changes during review.
Public GitHub facts reviewed Nov 26, 2026. Independent editorial profile; not a sponsored entry.
How is the score calculated?
Calculated on 26.11.2026. Missing public information receives no points. The index does not establish code quality, security, fitness, or future visibility.
What can prettier help with?
Check a component before opening a pull request
From the project workspace, run the pinned formatter with prettier --check src/Card.tsx. Record the reported filename and verify whether that file uses project-wide settings or an override.
Review a formatter upgrade against a design-system sample
Format a disposable copy of a component, its styles, and a Markdown example with the candidate version. Review the diff, render the sample, and keep the upgrade separate from feature work.
Questions people ask before using prettier
How do I make a local formatting failure match the CI job?
Run the binary installed from the same lockfile and use the same working directory and file pattern as CI. Record the version and compare the effective configuration for a failing file.
Which flag should a pull-request check use if it must leave the checkout clean?
Use --check and pass the intended paths explicitly. Report the process exit status to CI and leave --write to a contributor who can inspect the resulting changes.
How can I identify the files that need attention in a long run?
Use --list-different for a filename-oriented report. Re-run a single file with the same configuration to isolate a surprising result before changing the entire tree.
What causes a pasted code fragment to use the wrong parser?
Text from standard input may lack a filename from which to infer the parser. Pass a representative path with --stdin-filepath and make sure that file type is supported by the installed version.
How do we handle generated client code in a monorepo?
Identify generated directories at the project root used by the check and add ignore patterns there. Confirm that a human-maintained wrapper beside the generated directory remains in scope.
What happens when the formatter finds no files for our glob?
Check the working directory, quoting, extensions, and file list. Leave unmatched patterns visible when files are required so a broken path cannot make an empty check look successful.
What do we review before adopting a third-party formatter plugin?
Verify the package, supported versions, file types, and licensing from its own project. Pin it explicitly and test a small fixture using the same runtime as CI.
How do I evaluate a change to embedded code formatting?
Include a template with a known embedded snippet, format a copy, and compare both source and rendered behavior. Document any override at the narrowest appropriate scope.
Can we format only the vendored code that our team maintains?
Identify ownership first, then select narrowly scoped directories or exceptions. Review upstream update procedures before reformatting a subtree that must stay easy to compare with its source.
What belongs in a redistribution review of the formatter?
Review the MIT license at the pinned revision and preserve the applicable copyright and license notice when distributing covered copies. Inventory third-party packages and bundled notices separately.
What to check before adoption
- Primary language
- JavaScript
- GitHub license field
- MIT
- License according to repository file
- MIT · LICENSE ↗
- Stars / forks in this snapshot
- 52,453 / 5,053
- Last code push
- 26.11.2026
- Self-hostable
- Potentially, verify operating requirements
A clean result covers the chosen files and resolved options. Type checking, UI behavior, accessible labels, and design consistency need their own tests.
Comparison and original sources
Compared with markdownlint-cli2 Use Markdownlint when you need rule-level diagnostics on Markdown. Choose Prettier for consistent formatting across the supported source formats.
Documentation and repository data
Compare related projects
lighthouse
GoogleChrome/lighthouse
An automated audit tool for web performance, accessibility, SEO checks, and best practices.
GitHub snapshot 11.11.2026 · Score method on profile
A visual low-code environment for event-driven automations and integrations.
GitHub snapshot 11.11.2026 · Score method on profile
wordpress-develop
WordPress/wordpress-develop
A GitHub mirror of the WordPress core development project.
GitHub snapshot 11.11.2026 · Score method on profile
Back to Open Source Radar
Explore more projects by job, technology, and license.