Commit Graph
7011 Commits
Author SHA1 Message Date
fisker Cheung ef707da0a2 Fix formatting for auto-accessors with comments (#14038)
Fixes https://github.com/prettier/prettier/issues/14036
2022-12-29 17:17:54 +08:00
fisker Cheung d798b55486 Improve let check in for..of (#14076) 2022-12-29 15:12:22 +08:00
Georgii Dolzhykov 201e02e14e Fix displacing of comments in default switch case (#14047) 2022-12-29 10:13:02 +08:00
fisker Cheung 32d46d9fa1 Fix formatting of empty type parameters (#14073) 2022-12-29 10:11:50 +08:00
Michael Voříšek 4551fe6f6f Fix no space after unary minus when followed by opening parenthesis in LESS (#14008) 2022-12-29 10:07:12 +08:00
fisker Cheung 948b3af232 Revert last commit
Accidentally committed to main branch when testing #14062

Revert 6ed29ee10e
2022-12-26 10:31:16 +08:00
fisker Cheung 6ed29ee10e Test 2022-12-26 10:10:02 +08:00
Sosuke Suzukiandfisker 08a51db63f Update dependencies (#14052)
Co-authored-by: fisker <lionkay@gmail.com>
2022-12-23 21:45:45 +08:00
Sosuke Suzukiandfisker 7564339a15 Support type annotations on auto accessors via babel-ts (#14049)
* Update `@babel/parser`

* Move tests to `/format/typescript`

* Update tests

* Add changelog

* Dedupe

Co-authored-by: fisker <lionkay@gmail.com>
2022-12-23 16:41:36 +09:00
fisker CheungandGeorgii Dolzhykov 57a109af0a Add missing parentheses to let in for..of loop (#14044)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-12-23 14:49:01 +08:00
fisker Cheung 895adf780b Fix badge (#14046) 2022-12-23 14:47:20 +08:00
fisker 20fad630fa Fix test 2022-12-22 10:19:01 +08:00
fisker CheungandGeorgii Dolzhykov a6b6184d75 Add missing parentheses to let (#14000)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-12-22 09:42:03 +08:00
fisker Cheung 985b895c47 Improve keyword class property print (#13997) 2022-12-19 13:20:48 +08:00
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