You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
.azure-pipelines | 3 years ago | |
.github | 4 years ago | |
bin | 6 years ago | |
docs | 3 years ago | |
scripts | 3 years ago | |
src | 3 years ago | |
tests | 3 years ago | |
tests_config | 4 years ago | |
tests_integration | 3 years ago | |
website | 3 years ago | |
.codecov.yml | 6 years ago | |
.eslintignore | 5 years ago | |
.eslintrc.yml | 4 years ago | |
.flowconfig | 6 years ago | |
.gitattributes | 4 years ago | |
.gitignore | 4 years ago | |
.ignore | 4 years ago | |
.pre-commit-hooks.yaml | 4 years ago | |
.prettierignore | 3 years ago | |
.prettierrc | 4 years ago | |
.yarnrc | 4 years ago | |
CHANGELOG.md | 4 years ago | |
CHANGELOG.unreleased.md | 3 years ago | |
CODE_OF_CONDUCT.md | 4 years ago | |
CONTRIBUTING.md | 3 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
azure-pipelines.yml | 3 years ago | |
commands.md | 5 years ago | |
cspell.json | 3 years ago | |
index.js | 5 years ago | |
jest.config.js | 4 years ago | |
package.json | 3 years ago | |
standalone.js | 5 years ago | |
tsconfig.json | 3 years ago | |
yarn.lock | 3 years ago |
README.md
Opinionated Code Formatter
JavaScript
· TypeScript
· Flow
· JSX
· JSON
CSS
· SCSS
· Less
HTML
· Vue
· Angular
GraphQL
· Markdown
· YAML
Your favorite language?
Intro
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
Input
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
Output
foo(
reallyLongArg(),
omgSoManyParameters(),
IShouldRefactorThis(),
isThereSeriouslyAnotherOne()
);
Prettier can be run in your editor on-save, in a pre-commit hook, or in CI environments to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!
Badge
Show the world you're using Prettier →
[](https://github.com/prettier/prettier)
Contributing
See CONTRIBUTING.md.