prettier с фиксом для поддержки скобок с новой строки
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.
 
 
 
 
 
 
Vitaliy Filippov 1916966910 Фикс против пидоров, которые не хотят поддерживать скобки с новой строки 3 years ago
.azure-pipelines Start JSDoc type linting (#6770) 3 years ago
.github Update FUNDING.yml 4 years ago
bin refactor(cli): separate files and make it pure as possible (#2730) 6 years ago
docs JSDoc type added in `src/common/util.js` (#6788) 3 years ago
scripts Switch `rollup-plugin-alias` to `@rollup/plugin-alias` (#6764) 3 years ago
src Фикс против пидоров, которые не хотят поддерживать скобки с новой строки 3 years ago
tests fix: numeric separators were removed from BigInt literals (#6796) 3 years ago
tests_config fix: get rid of CRLF (#5494) 4 years ago
tests_integration Gracefully handle nonexistent paths passed to --stdin-filepath. (#6687) 3 years ago
website Fix to follow #6811 (#6812) 3 years ago
.codecov.yml Improve coverage and remove some dead code (#2504) 6 years ago
.eslintignore Introduce Release script (#4631) 5 years ago
.eslintrc.yml Fix `.eslintrc.yml` code style (#6388) 4 years ago
.flowconfig Build the dist/ with rollup (#1794) 6 years ago
.gitattributes fix: get rid of CRLF (#5494) 4 years ago
.gitignore chore: update azure pipelines (#5611) 4 years ago
.ignore fix: Adjacent JSX elements should be allowed in mdx (#6332) 4 years ago
.pre-commit-hooks.yaml docs(blog): 1.15 release (#5296) 4 years ago
.prettierignore set up cspell (#6684) 3 years ago
.prettierrc Add empty .prettierrc to project root (#6125) 4 years ago
.yarnrc chore(yarn): disable integrity migration 4 years ago
CHANGELOG.md Swap bases in changelog (#6251) 4 years ago
CHANGELOG.unreleased.md fix: numeric separators were removed from BigInt literals (#6796) 3 years ago
CODE_OF_CONDUCT.md Add a code of conduct (#5891) 4 years ago
CONTRIBUTING.md Add basic instructions on how to run Prettier locally for debugging. (#6686) 3 years ago
LICENSE Update copyright line (#5455) 4 years ago
README.md chore: update azure pipelines (#5611) 4 years ago
azure-pipelines.yml Run CI on node 12 (#6738) 3 years ago
commands.md Add a new `trim` command to trim whitespaces in the current line (#4772) 5 years ago
cspell.json Gracefully handle nonexistent paths passed to --stdin-filepath. (#6687) 3 years ago
index.js refactor: move index.js and standalone.js to src (#5054) 5 years ago
jest.config.js chore: update azure pipelines (#5611) 4 years ago
package.json Bump eslint-plugin-react from 7.14.3 to 7.16.0 (#6807) 3 years ago
standalone.js refactor: move index.js and standalone.js to src (#5054) 5 years ago
tsconfig.json Start JSDoc type linting (#6770) 3 years ago
yarn.lock Bump eslint-plugin-react from 7.14.3 to 7.16.0 (#6807) 3 years ago

README.md

Prettier Banner

Opinionated Code Formatter

JavaScript · TypeScript · Flow · JSX · JSON
CSS · SCSS · Less
HTML · Vue · Angular
GraphQL · Markdown · YAML
Your favorite language?

Azure Pipelines Build Status Codecov Coverage Status Blazing Fast
npm version weekly downloads from npm code style: prettier Chat on Gitter Follow Prettier on Twitter

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!


Documentation

Install · Options · CLI · API

Playground


Badge

Show the world you're using Prettiercode style: prettier

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Contributing

See CONTRIBUTING.md.