Commit Graph
399 Commits
Author SHA1 Message Date
sosukesuzuki e351bfc678 Release 2.5.0 2021-11-25 22:57:21 +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
sosukesuzuki e49951e5a3 Release 2.4.0 2021-09-09 18:19:39 +09: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
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
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
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
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
fisker CheungandGeorgii Dolzhykov 7cc52da144 Simplified printGenerically (#10557)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-03-22 16:57:03 +02:00
Georgii Dolzhykov 4fc2630c16 Remove stale plugins from home page and docs (#10538) 2021-03-15 03:54:59 +02:00
Georgii Dolzhykov f7fe6f52ca docs: refine browser.md (#10539) 2021-03-15 02:25:18 +02:00
Georgii Dolzhykov 33ab1fccc8 Clarify docs about pragma (#10500) 2021-03-10 03:40:15 +02:00
Georgii Dolzhykov 109492a497 Clarify prettier.format docs (#10499) 2021-03-10 02:54:50 +02:00
Georgii Dolzhykov 285c15ef08 docs: how to ignore files using negative patterns (#10400) 2021-02-24 21:47:07 +02:00
Georgii Dolzhykov aef9277ada Print trailing comma for TS type parameters but not type arguments (#10353) 2021-02-20 12:47:56 +02:00
Georgii Dolzhykov 3a73f48a0e Don't use smart quotes for JSON5 with --quote-props=preserve (#10323) 2021-02-15 19:13:33 +02:00
Nathan TottenandGeorgii Dolzhykov edf8bceac6 Removed experimental plugins (#9417)
* Removed experimental plugins

Removing plugins that abuse the plugin api.

* Remove more plugins that use the API in a non-intended way

* Update version-stable

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-02-11 23:05:49 +02:00
Cyrille David 5aa057b40b Handlebars: Default --html-whitespace-sensitivity to strict (#10201)
* Handlebars: Default --html-whitespace-sensitivity to strict

* Record tests other than handlebars

* Trim trailing newlines

* Record tests

* Fix rebase

* Record all tests not only hbs

* Fix the idempotency issue

Adjust dedent for the last child node

* Fix the annoying trailing whitespace

* Trim isolated leading newline
2021-02-11 15:43:07 +02:00
Georgii Dolzhykov f3906d84d4 Refactor: rename FastPath → AstPath (#10276) 2021-02-10 13:42:06 +02:00
Daron McIntosh 3d9f102301 Add CLI option to prevent errors on unmatched patterns (#10058) 2021-01-28 00:30:16 +02:00
Georgii Dolzhykov 79d2f4a295 Add CLI flag for debugging comment attachment issues (#10124) 2021-01-27 12:30:10 +02:00
Georgii Dolzhykov 63a771db55 Add parallel-prettier to "Related Projects" (#10147) 2021-01-27 10:06:03 +02:00
Georgii Dolzhykov 343d372845 Document that Prettier never unquotes numeric properties in TS and Flow (#10126)
* Document that Prettier never unquotes numeric properties in TS and Flow

* Add Angular

* Mention Vue
2021-01-26 20:17:30 +02:00
fisker Cheung 12bddae20c Switch default branch to main (#10115) 2021-01-23 19:14:13 +02:00
Cyrille DavidandGeorgii Dolzhykov 949c36190f Document --htmlWhitespaceSensitivity option for Handlebars (#10079)
* Document htmlWhitespaceSensitivity for Handlebars

* Update options.md

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-01-19 16:49:19 +02:00
Georgii Dolzhykov 4273cbf95f docs: add a note on formatting reversibility (#10062) 2021-01-19 11:39:01 +02:00
fisker CheungandGeorgii Dolzhykov 9d9c0e2b6f Add Doc[] as Doc (#9733)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-01-04 10:04:30 +08:00
fisker Cheung 643f8906e0 doc: improve examples in browser (#9811) 2020-12-12 23:10:59 +02:00
fisker CheungandSosuke Suzuki 6df49ad078 Fix link to babel website (#9856)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2020-12-12 23:10:01 +02:00
sosukesuzuki 81cf06129b Merge branch 'patch-release' 2020-11-28 09:28:07 +09:00
sosukesuzuki 326543f908 Release 2.2.1 2020-11-28 09:21:04 +09:00
Georgii DolzhykovandLucas Azzola 3a6d659ecc Update option philosophy: option requests aren’t accepted anymore (#8540)
* Update option philosophy: option requests aren’t accepted anymore

* Update docs/option-philosophy.md

Co-authored-by: Lucas Azzola <lucas.azzola@iress.com>

* Update option-philosophy.md

Co-authored-by: Lucas Azzola <lucas.azzola@iress.com>
2020-11-26 19:19:40 +02:00
fisker 114fe2e6cc Fix typo 2020-11-20 13:34:43 +08:00
fisker 81303dab8c Docs: Add missing meriyah parser 2020-11-20 13:24:02 +08:00
sosukesuzuki 42b2195e71 Release 2.2.0 2020-11-20 13:44:18 +09:00
ed49bf10a0 Moved pre-commit support to github.com/pre-commit/mirrors-prettier (#8937)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-11-16 18:27:34 +08:00
Georgii Dolzhykov d6858d52ad Changelog edits for 2.2 (#9603) 2020-11-05 13:07:29 +09:00