An opinionated code formatter (evacuated from NSA/Microsoft Github)
|
il y a 6 ans | |
---|---|---|
.circleci | il y a 6 ans | |
.github | il y a 6 ans | |
bin | il y a 6 ans | |
docs | il y a 6 ans | |
scripts | il y a 6 ans | |
src | il y a 6 ans | |
tests | il y a 6 ans | |
tests_config | il y a 6 ans | |
tests_integration | il y a 6 ans | |
website | il y a 6 ans | |
.appveyor.yml | il y a 6 ans | |
.codecov.yml | il y a 7 ans | |
.eslintignore | il y a 6 ans | |
.eslintrc.yml | il y a 6 ans | |
.flowconfig | il y a 7 ans | |
.gitignore | il y a 6 ans | |
.ignore | il y a 7 ans | |
.pre-commit-hooks.yaml | il y a 6 ans | |
.prettierignore | il y a 6 ans | |
.travis.yml | il y a 6 ans | |
.yarnrc | il y a 7 ans | |
CHANGELOG.md | il y a 6 ans | |
CONTRIBUTING.md | il y a 6 ans | |
LICENSE | il y a 6 ans | |
README.md | il y a 6 ans | |
commands.md | il y a 6 ans | |
index.js | il y a 6 ans | |
jest.config.js | il y a 6 ans | |
package.json | il y a 6 ans | |
standalone.js | il y a 6 ans | |
yarn.lock | il y a 6 ans |
JavaScript · Flow · TypeScript · CSS · SCSS · Less · JSX · Vue · GraphQL · JSON · Markdown · Your favorite language?
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.
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
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!
Show the world you're using Prettier →
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
See CONTRIBUTING.md.