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