Commit Graph
433 Commits
Author SHA1 Message Date
fisker Cheung 52c9a20e2c Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/cli/index.js
#	tests/config/install-prettier.js
#	tests/format/yaml/block-literal/jsfmt.spec.js
#	tests/integration/__tests__/file-info.js
#	yarn.lock
2022-02-21 16:12:59 +08:00
fisker CheungandAlexander Kachkaev 3ba48bb266 Add --no-plugin-search (#10274)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2022-02-18 16:36:53 +08:00
fisker Cheung f0b63f3dff Merge branch 'main' into next
# Conflicts:
#	CONTRIBUTING.md
#	cspell.json
#	docs/options.md
#	package.json
#	scripts/build/bundler.mjs
#	src/language-css/loc.js
#	src/language-css/parser-postcss.js
#	src/language-css/utils/index.js
#	tests/format/js/arrows-bind/jsfmt.spec.js
#	tests/format/js/async-do-expressions/jsfmt.spec.js
#	tests/format/js/bind-expressions/jsfmt.spec.js
#	tests/format/js/classes/top-level-super/jsfmt.spec.js
#	tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
#	tests/format/js/decorator-comments/jsfmt.spec.js
#	tests/format/js/decorators-export/jsfmt.spec.js
#	tests/format/js/decorators/jsfmt.spec.js
#	tests/format/js/do/jsfmt.spec.js
#	tests/format/js/export-default/escaped/jsfmt.spec.js
#	tests/format/js/export-extension/jsfmt.spec.js
#	tests/format/js/export-star/jsfmt.spec.js
#	tests/format/js/exports/jsfmt.spec.js
#	tests/format/js/invalid-code/jsfmt.spec.js
#	tests/format/js/logical-assignment/jsfmt.spec.js
#	tests/format/js/multiparser-invalid/jsfmt.spec.js
#	tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
#	tests/format/js/object-property-comment/jsfmt.spec.js
#	tests/format/js/partial-application/jsfmt.spec.js
#	tests/format/js/pipeline-operator/jsfmt.spec.js
#	tests/format/js/private-in/jsfmt.spec.js
#	tests/format/js/record/jsfmt.spec.js
#	tests/format/js/reserved-word/jsfmt.spec.js
#	tests/format/js/strings/jsfmt.spec.js
#	tests/format/js/throw_expressions/jsfmt.spec.js
#	tests/format/js/trailing-whitespace/jsfmt.spec.js
#	tests/format/js/v8_intrinsic/jsfmt.spec.js
#	tests/format/misc/errors/js/literal/jsfmt.spec.js
#	tests/format/misc/errors/js/object/jsfmt.spec.js
#	tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
#	tests/integration/__tests__/bundle.js
#	tsconfig.json
#	yarn.lock
2022-02-09 09:22:32 +08:00
Adamandfisker Cheung 331d278a3a Update plugin docs (#12259)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-02-07 15:44:47 -03:00
Benny Neugebauer f19604a07e docs(webstorm): Add image for Prettier as External Tool (#12251) 2022-02-06 21:18:37 -03:00
fisker Cheung 9691e7bc37 Add acorn parser (#12172) 2022-01-28 15:25:30 +08:00
Joel Bradshawandfisker Cheung 38b5b98393 Clarify documentation around proseWrap (#12134)
* Clarify documentation around proseWrap

These docs were a bit misleading, describing never as "opt-out" when it in fact can result in massive changes in an existing wrapped file is confusing, and referring to the default behavior as "wrapping as-is" is confusing, because Prettier isn't actually doing any wrapping - it's just leaving it as-is. Hopefully this is clearer.

* Update stable version docs

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-01-26 00:33:05 +09:00
fisker Cheung 0cfb9d95e4 Merge branch 'main' into next 2022-01-08 22:19:54 +08:00
AliReZa Sabouriandfisker Cheung 7c16d226f1 docs: Add Husky.Net option (#12040)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-01-05 09:43:23 +08:00
fisker Cheung 12d8ac32c5 Merge branch 'main' into next
# Conflicts:
#	cspell.json
#	package.json
#	tests/integration/__tests__/early-exit.js
#	yarn.lock
2022-01-04 15:04:40 +08:00
Bela VanderVoort 22294fe9fb Add csharpier to "Related Projects" (#12002) 2021-12-29 03:37:10 -03:00
Wyatt Andersonandfisker Cheung a91465dfde Update instructions for configuring Neoformat (#11946)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-12-20 09:21:53 +08:00
fisker Cheung 011672669e Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2021-12-07 15:15:42 +08:00
Jere Kankaanrantaandfisker Cheung 82e6937d50 Added changelog and updated the "first available in" version for singleAttributePerLine (#11934)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-12-07 14:13:26 +08:00
sosukesuzuki c63f8617d5 Merge branch 'patch-release' into main 2021-12-04 23:33:56 +09:00
sosukesuzuki 56ed71d1c9 Release 2.5.1 2021-12-04 23:31:03 +09:00
imgbot[bot]andImgBotApp ff8579f392 [ImgBot] Optimize images (#11911)
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-12-03 12:36:34 +08:00
Vlad SholokhovandVladislav Sholokhov 7406d31072 Updated Using prettier in WebStorm article. (#11909)
- added info recent features
- removed outdated sections

Co-authored-by: Vladislav Sholokhov <vladislav.sholokhov@jetbrains.com>
2021-12-03 00:47:10 -03:00
Jere Kankaanranta 0e42acb49b feat: added singleAttributePerLine option (#5501) (#6644) 2021-12-02 11:46:11 +03:00
fisker Cheung 0d6d47b30a Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2021-12-01 16:35:15 +08:00
Chris Midgley 2160e11061 docs: add docs for editorconfig to configuration and options (#11883) 2021-11-30 16:24:07 -03:00
fisker Cheung 48243c2a3e Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	yarn.lock
2021-11-30 21:17:36 +08:00
sosukesuzuki e351bfc678 Release 2.5.0 2021-11-25 22:57:21 +09:00
sosukesuzuki 7446e06d47 Merge branch 'main' into next 2021-10-10 14:58:57 +09:00
Josh Unger 3833515c1c Add prettier-plugin-erb (#11535) 2021-09-19 16:56:39 +09:00
sosukesuzuki 7ced9e6654 Release 2.4.1 2021-09-16 15:06:00 +09:00
Carlos Frias ae33e494a9 fix(docs): lint-staged install instructions (#11363)
As per https://github.com/okonet/lint-staged#installation-and-setup

The previous ones were not working.
2021-09-13 19:38:11 +03:00
Gastón Giménez a1a7502f4f Update integrating-with-linters.md (#11399) 2021-09-13 19:33:33 +03:00
fisker Cheung 3d1469969b Merge branch 'main' into next
# Conflicts:
#	scripts/build/bundler.mjs
#	scripts/build/rollup-plugins/replace-module.mjs
#	scripts/build/shims/fs.mjs
2021-09-10 13:53:22 +08:00
sosukesuzuki e49951e5a3 Release 2.4.0 2021-09-09 18:19:39 +09:00
fisker Cheung beba6fa88c Merge branch 'next' of github.com:prettier/prettier into next
# Conflicts:
#	package.json
#	yarn.lock
2021-09-08 12:54:17 +08:00
4992d97203 Deprecate jsxBracketSameLine option in favour of multi-language bracketSameLine option (#11006)
* deprecate jsxBracketSameLine in favour of multi-language angleBracketSameLine option

* update docs and snapshots

* update tests to to make them more reviewable

* Rewrite angular tests

* Rewrite html tests

* Rewrite vue tests

* Restore unnecessary changes in jsx

* Fix file location

* Test both `true` and `false`

* Revert changes in markdown

* Run tests on all js parsers

* Improve html test

* fix changelog comment

* move bracketSameLine to common options

* mark jsxBracketSameLine as deprecated

* Update changelog_unreleased/html/11006.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Update 11006.md

* fix tests by removing `jsxBracketSameLine` `default` property

* fix style

* Revert docs under website dir

* Add tests for deprecated options

* Fix lint problems

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-08-31 11:47:50 +09:00
fisker Cheung a998e3c34d Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	src/language-css/loc.js
#	yarn.lock
2021-08-13 11:45:05 +08:00
Ryan Gatchalian 51361ae851 docs: Require npm version for set-script command (#11309) 2021-08-05 18:33:42 +09:00
sosukesuzuki 9a8b579d36 Release 2.3.2 2021-06-26 17:27:44 +09:00
fisker 77f8f0ddb5 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	yarn.lock
2021-06-14 00:31:55 +08:00
sosukesuzuki d770f49dc0 Release 2.3.1 2021-06-05 19:19:23 +09:00
tkiat 4b4aeaffa5 Fix a typo (#11009)
Need to change 'M' to 'm' otherwise it won't work. You may refer to https://github.com/neoclide/coc-prettier/pull/47
2021-06-04 13:16:41 +03:00
Georgii Dolzhykov 6dcc20c0fc docs: make "A note on formatting reversibility" linkable 2021-05-20 23:40:45 +03:00
Georgii Dolzhykov 2afc3b9ae6 Release 2.3.0 2021-05-10 00:00:41 +03:00
Boris K 7cfa9aa89b Fix pre-commit hook setup command (#10710) 2021-05-09 15:44:34 +03:00
Zearin 387fce4ed8 Minor formatting tweaks (#10807) 2021-05-06 16:55:23 +03:00
fisker Cheung 60619338f1 Merge branch 'main' into next
# Conflicts:
#	package.json
#	tests/css/atrule/each.css
#	tests/css/atrule/for.css
#	tests/css/atrule/if-else.css
#	tests/css/atrule/include.css
#	tests/css/atrule/while.css
#	tests/format/css/atrule/each.css
#	tests/format/css/atrule/for.css
#	tests/format/css/atrule/if-else.css
#	tests/format/css/atrule/include.css
#	tests/format/css/atrule/while.css
#	tests/scss/atrule/each.scss
#	tests/scss/atrule/for.scss
#	tests/scss/atrule/if-else.scss
#	tests/scss/atrule/include.scss
#	tests/scss/atrule/while.scss
#	yarn.lock
2021-05-06 16:00:12 +08:00
Georgii Dolzhykov 66feb01960 docs: update git hooks instructions in install.md (#10763)
* docs: update git hooks instructions in install.md

* Add Yarn 2 link
2021-04-26 01:13:09 +03:00
UnrealApex dacb23b590 docs: fix command in install.md (#10740) 2021-04-21 15:31:20 +03:00
typicode 48628eb17d docs(precommit): update husky installation (#10658) 2021-04-08 20:26:09 +03:00
fisker Cheung 85fc1fa017 Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/language-css/printer-postcss.js
#	yarn.lock
2021-03-29 19:47:56 +08:00
Jonas DOREL fd29bfc7c5 docs(precommit): Ignore unknown files (#10634)
Without `--ignore-unknown`, files without an extension or with an unknown extension would trigger the following error :
```
.gitignore[error] No parser could be inferred for file: ansible.cfg
```
2021-03-29 13:50:36 +03:00
Mikhail Gorbunov 7678033855 husky -> simple-git-hooks (#10601)
`Lint staged` along with `mrm` recently migrated from `husky` to `simple-git-hooks`.

It is reflected in their [docs](https://github.com/okonet/lint-staged):

> It will install and configure simple-git-hooks and lint-staged depending on code quality tools from package.json dependencies so please make sure you install (npm install --save-dev) and configure all code quality tools like Prettier, ESlint prior that.

Migration brought these benefits for users: 

* lighter `node_modules` 
   `simple-git-hooks` (10 kb) is lighter then husky4 (1mb) and husky5 (25kb)
* Out of the box `Yarn 2` support
* No worry for licensing. 
   Simple git hooks has MIT license, like husky 4
2021-03-27 01:08:24 +02:00
Georgii Dolzhykov 45188c6396 docs: improve example for printer print function (#10587) 2021-03-24 18:09:09 +02:00