Commit Graph
6997 Commits
Author SHA1 Message Date
fisker Cheung 617f077766 Remove outdated code (#13996) 2022-12-19 13:19:59 +08:00
b50dfd1974 fix: preserve empty lines between nested SCSS maps (#13931)
Co-authored-by: Jeremy Neander <jeremy.neander@glassdoor.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:54:47 +08:00
HonkingGooseandfisker Cheung d24d74930e Rewrite sentence (#13686)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:52:09 +08:00
Derek Lewisandfisker Cheung 44db370ca6 Don't lowercase Markdown link definition labels (#13155)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:51:19 +08:00
James C. Davis 40d0f27055 [handlebars] allow custom "else if"-like with block params (#13930) 2022-12-15 14:50:51 +08:00
David De Sloovereandfisker Cheung df1f6ad1ac Update Husky.Net info (#13883)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:50:24 +08:00
fisker Cheung 521de3bf4d Don't run scheduled workflows in forks (#13981) 2022-12-12 17:26:29 +08:00
Alex Rattray 28d097bbf5 Add test cases for questioning ternaries (#13952)
## Description

Extracts test cases that I added for https://github.com/prettier/prettier/pull/13183 to make it easier to visualize the changes that PR makes, as @vjeux [requested](https://github.com/prettier/prettier/pull/13183#discussion_r990820889).

## Checklist

<!-- Please ensure you’ve done all of these things (if applicable). -->
<!-- You can replace the `[ ]` with `[x]` to mark each task as done. -->

- [x] I’ve added tests to confirm my change works.
- [x] I’ve read the [contributing guidelines](https://github.com/prettier/prettier/blob/main/CONTRIBUTING.md).

<!-- Please DO NOT remove the playground link -->

**✨[Try the playground for this PR](https://prettier.io/playground-redirect)✨**
2022-12-07 15:46:40 -05:00
Sosuke Suzuki 26b5273833 Revert removing version validation 2022-12-08 02:31:38 +09:00
Sosuke Suzuki be4dd620bf Clean changelog_unreleased 2022-12-08 02:31:11 +09:00
Sosuke Suzuki 804e5a75f3 Git blame ignore 2.8.1 2022-12-08 02:29:25 +09:00
Sosuke Suzuki b87de09bcf Bump Prettier dependency to 2.8.1 2022-12-08 02:29:25 +09:00
Sosuke Suzuki 80c3ec14ee Update dependents count 2022-12-08 02:29:08 +09:00
Sosuke Suzuki cd1df1a184 Release 2.8.1 2022-12-08 02:22:06 +09:00
Sosuke Suzuki 5541a63d76 Remove version validation 2022-12-08 01:48:48 +09:00
Sosuke Suzukiandfisker Cheung 1cf760a184 Support decorator auto accessors syntax (#13919)
* Install new ts-estree

* Print auto accessor properties

* Support edge cases

* Misc tests

* Add tests for auto accessor with type annotations

* Add changelog

* Update changelog_unreleased/typescript/13919.md

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

* Update changelog_unreleased/typescript/13919.md

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

* Print semicolon for accessor and add tests

* Add TODO comment

* Add  to properties list

* Address review

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-05 20:50:15 +09:00
Łukasz Rabiec aa34209820 test: format instantiation expr in logical expr (#13897) 2022-12-05 17:46:52 +09:00
dependabot[bot] 957b4f20e8 Build(deps): Bump decode-uri-component from 0.2.0 to 0.2.2 in /website (#13933)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-03 13:14:00 +00:00
fisker Cheung e4240aeaf0 Add tests for keyword class property (#13927) 2022-12-01 17:03:37 +08:00
fisker Cheung 655a161d0f Add tests for multiple comments (#13890)
Close https://github.com/prettier/prettier/issues/3105
2022-11-25 10:52:47 +08:00
4a1e32a9de Fixed scss function arguments on different lines in maps #9128 (#9184)
Co-authored-by: agamkrbit <agamkrbit123@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-11-24 17:46:29 +08:00
fisker Cheung 38806fe666 Migrate from probot/no-response to lee-dohm/no-response (#13891)
Close https://github.com/prettier/prettier/issues/13472
2022-11-24 13:47:29 +08:00
Pete Meehanandfisker Cheung a60bee2e2d Add '--single-attribute-per-line' option to Playground (#13587)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-11-24 09:59:39 +08:00
Sosuke Suzuki 9c45de6842 Clean changelog 2022-11-23 14:11:13 +09:00
Sosuke SuzukiandGeorgii Dolzhykov ebd4542d59 2.8 blog post (#13813)
* Draft

* Update

* Generate

* Add `truncate`

* Address review

* Regen

* Update

* Reword changelog for #13016

* Edit intro

* Edit changelog for #13019

* Regenerate blog post

* Address review

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-11-23 14:01:45 +09:00
Sosuke Suzuki a34272d32f Validate version 2022-11-23 13:54:54 +09:00
Sosuke Suzuki 94c25d9e5e Git blame ignore 2.8.0 2022-11-23 13:53:57 +09:00
Sosuke Suzuki 4049e49fe2 Bump Prettier dependency to 2.8.0 2022-11-23 13:53:57 +09:00
Sosuke Suzuki 595fbafb99 Update dependents count 2022-11-23 13:53:37 +09:00
Sosuke Suzuki dcc0623911 Release 2.8.0 2022-11-23 13:24:27 +09:00
Sosuke Suzuki 7f7498109b Remove version validattion temp 2022-11-23 13:20:49 +09:00
Sosuke Suzuki 876c297589 Update changelog for satisfies (#13879)
Address review
2022-11-22 15:25:52 +09:00
Sosuke Suzuki fd376000e9 Update @typescript-eslint/typescript-estree to support satisfies (#13872)
* Update to `5.43.1-alpha.22`

* Update snapshots for satisfies

* Update changelog

* Remove `@ts-expect-error` comment

* Yarn dedupe

* Update to stable version

* Fix changelog

* Fix changelog
2022-11-22 15:19:28 +09:00
dependabot[bot] fac87619a4 Build(deps): Bump minimatch from 3.0.4 to 3.1.2 in /scripts/release (#13854)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-18 12:10:49 +08:00
fisker Cheung 68ea881498 Update typescript to v4.9 (#13852) 2022-11-18 09:54:48 +08:00
Sosuke Suzuki 5e0b88329e Fix generate truncate comment (backport #13437) (#13814)
Fix generate truncate comment
2022-11-06 18:59:10 +09:00
Sosuke Suzuki a980caa7db Add missing changelog for #13016 (#13812)
* Add missing changelog

* Fix
2022-11-06 18:48:44 +09:00
Sosuke Suzuki 520dbcd36e Add changelog for #13783 (#13811)
* Add changelog

* Fix
2022-11-06 17:54:43 +09:00
fisker Cheung ae4d85ab3c Update description of vueIndentScriptAndStyle option (#13781) 2022-11-04 11:14:12 +08:00
Sosuke Suzuki ff0529ac2e Backport "Support TS4.9 satisfies operator (#13764)" (#13783) 2022-11-04 10:35:50 +08:00
MillyandSosuke Suzuki ca246aface Fix --cache set only if with --write or no-different (#13016)
* Fixed typo

* Return early if file does not exist

* Added tests for cache

* Added `mockWriteFileErrors` option to run helper

* Added tests for write error

* Remove files with differences from cache

* Add `getCliArguments` utility function

Refactor

* Fix lint

* Revert "Fix lint"

This reverts commit 18be64b7c42cd669496d59ff64bd534b8e03c3df.

* Revert "Add `getCliArguments` utility function"

This reverts commit d653fe10a92390102ae97cb43b2efcbb5c3c9140.

* Refactor with `cliArguments` variable

Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2022-10-24 23:55:36 +09:00
Anders Kaseorg f38111fec6 markdown: Preserve inline code line breaks if --prose-wrap=preserve (#11373) 2022-10-09 16:53:12 +03:00
Jed Fox bfb09bf214 Format pseudo-selector args like a function call (#13577) 2022-10-02 11:11:44 -04:00
2bbbe1a8d1 Improve MDX range ignore support (#12208)
Co-authored-by: Nick Rutten <nickrttn@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-28 10:02:17 +08:00
James C. Davisandfisker Cheung 38611cb16e [handlebars] correctly format custom "else if" blocks (#13507)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-26 11:04:50 +08:00
fisker Cheung 2bc757554b Update acorn & espree (#13506) 2022-09-22 19:11:34 +08:00
fisker Cheung 8764a3d378 Improve typescript bundle speed (#13433) 2022-09-22 19:11:19 +08:00
fisker Cheung b0d9387b95 Fix unpkg link (#13484) 2022-09-17 20:32:03 +08:00
fisker Cheung cd3e530c2e Reduce size of parser-typescript.js (#13431) 2022-09-06 20:38:50 +08:00
fisker Cheung 371c7093d0 Group @typescript-eslint/* dependencies in renovate config (#13430) 2022-09-06 14:40:59 +08:00