Commit Graph
8808 Commits
Author SHA1 Message Date
SUZUKI Sosuke 5cfb76ee50 Add *.cpuprofile file to .gitignore (#15507) 2023-10-10 11:24:12 +09:00
4aa5fd1c79 New Ternary Formatting: A Curious Case of the Ternaries (#13183)
Co-authored-by: Alex Rattray <rattrayalex@stripe.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2023-10-09 10:44:30 +09:00
SUZUKI Sosuke 4b432496df Support deferred import evaluation and source phase import syntax (#15487) 2023-10-09 08:52:48 +09:00
ADTC 7e67e43061 Show (unchanged) keyword for accessibility in CLI --write (#15467) 2023-10-09 08:40:28 +09:00
{{david|odenwald}} 64746cdd32 Add prettier-plugin-jinja-template to community plugin list (#15492) 2023-10-09 08:40:09 +09:00
SUZUKI Sosuke edfe46051f Support optional chaining assignment (#15488) 2023-10-09 08:36:11 +09:00
renovate[bot] c0c3579c29 chore(deps): update dependency ci-info to v3.9.0 (#15499)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-08 23:19:51 +08:00
renovate[bot] 0f73f9dce5 chore(deps): update dependency file-entry-cache to v7.0.1 (#15500)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-08 23:19:37 +08:00
SUZUKI Sosuke 14ddf452c4 Update @babel/parser to 7.23.0 (#15485) 2023-10-08 22:26:13 +08:00
renovate[bot] 19ea8ad8c2 chore(deps): update dependency postcss to v8.4.31 [security] (#15495)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-08 12:25:50 +08:00
Vivek Joshiandfisker Cheung d4d4b185e0 Fix: Encoding < and > in markdown urls (#15400)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-10-02 18:00:02 +08:00
dependabot[bot] 91fc4fc981 Bump xalvarez/prevent-file-change-action from 1.3.2 to 1.4.0 (#15478)
Bumps [xalvarez/prevent-file-change-action](https://github.com/xalvarez/prevent-file-change-action) from 1.3.2 to 1.4.0.
- [Release notes](https://github.com/xalvarez/prevent-file-change-action/releases)
- [Commits](https://github.com/xalvarez/prevent-file-change-action/compare/v1.3.2...v1.4.0)

---
updated-dependencies:
- dependency-name: xalvarez/prevent-file-change-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 17:33:35 +09:00
Lucas Santos f4491b1274 Fix name case of selectors in styled components interpolation (#15472) 2023-09-30 15:57:53 +09:00
Luca Casonatoandfisker Cheung b78d7c7d2d Disambiguate unary expr in instanceof and in (#15468)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-09-28 14:56:55 +08:00
SUZUKI Sosuke fa8cb85434 Support type arguments after typeof (#15466) 2023-09-28 12:57:38 +09:00
liuxingbaoyu c140ed6b53 Fix type definitions for v3 (#15464) 2023-09-27 22:43:58 +09:00
renovate[bot] d9e09e0849 chore(deps): update dependency @types/estree to v1.0.2 (#15450)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-25 19:52:29 +08:00
renovate[bot]andSosuke Suzuki 772c7b6305 chore(deps): update dependency hermes-parser to v0.16.0 (#15456)
* chore(deps): update dependency hermes-parser to v0.16.0

* Update snapshot

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2023-09-25 14:48:21 +09:00
SUZUKI Sosuke 9f06cdd5b0 Process files only supported by plugins (#15433) 2023-09-25 14:45:01 +09:00
fisker Cheung 65ee35800a Enable dependencyDashboardApproval in Renovate config (#15444) 2023-09-25 11:28:42 +08:00
renovate[bot]andSosuke Suzuki e574ec812a chore(deps): update dependency flow-parser to v0.217.0 (#15455)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2023-09-25 11:25:12 +08:00
Alex RattrayandAlex Rattray f25a592f57 Add indentation back to nested ternaries (#9559)
* Add indentation back to nested ternaries (except JSX)

* Add a real-world test case

* Add changelog entry

---------

Co-authored-by: Alex Rattray <rattrayalex@stripe.com>
2023-09-24 15:13:00 -04:00
renovate[bot] 84a5faf7a8 chore(deps): update dependency eslint to v8.50.0 (#15454)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-24 17:32:56 +09:00
renovate[bot] c1301b3cdc chore(deps): update typescript-eslint to v6.7.2 (#15452)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-24 17:32:29 +09:00
renovate[bot] 69071b9673 chore(deps): update dependency postcss to v8.4.30 (#15451)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-24 17:30:45 +09:00
renovate[bot] 76d788bcf6 chore(deps): update dependency @angular/compiler to v16.2.6 (#15449)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-24 17:30:06 +09:00
dependabot[bot] e8cac4609d Bump actions/checkout from 4.0.0 to 4.1.0 (#15448)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-24 16:56:39 +09:00
Tatsunori Uchino 0661f78a26 Don't split lines between Japanese kana & COMBINING KATAKANA-HIRAGANA (SEMI-)VOICED SOUND MARK (#15411)
* Don't split lines between Japanese kana & COMBINING KATAKANA-HIRAGANA (SEMI-)VOICED SOUND MARK

* Add changelog
2023-09-22 22:30:30 +09:00
dependabot[bot] 270ea3e090 Bump graphql from 16.8.0 to 16.8.1 (#15440)
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.8.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.8.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-22 20:14:59 +08:00
Sam Zhou 6bff776efd Support type arguments on jsx opening elements for flow (#15429) 2023-09-20 00:35:18 +09:00
Tatsunori Uchino b37a120ab6 Improve browserslist in package.json (#15427) 2023-09-18 22:22:33 +09:00
Alex Rattray e02f16415b Improve changelog generation DX for contributors (#15412)
* Make docs on generating changelog actually work

* Make a yarn gen:changelog command and reformat CONTRIBUTING docs
2023-09-18 14:37:05 +09:00
renovate[bot] 9a1aa65f9f chore(deps): update dependency codemirror-graphql to v2.0.10 (#15425)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 14:36:45 +09:00
renovate[bot] a0734a8030 chore(deps): update dependency html-ua-styles to v0.0.2 (#15417)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 04:17:46 +08:00
renovate[bot] 9462520a5c chore(deps): update dependency jest-docblock to v29.7.0 (#15421)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 00:16:04 +09:00
renovate[bot] a2c15a47ec chore(deps): update dependency eslint-plugin-n to v16.1.0 (#15419)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 00:00:24 +09:00
renovate[bot] 4dd65a00fb chore(deps): update babel (#15424)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 00:00:05 +09:00
Alex Rattray 77310c49ea Refactor simple member expressions etc (#15423) 2023-09-17 23:30:18 +09:00
renovate[bot] 86d0d146e6 chore(deps): update dependency jest to v29.7.0 (#15420)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-17 23:27:51 +09:00
renovate[bot] 44279be038 chore(deps): update dependency eslint-plugin-jest to v27.4.0 (#15418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-17 23:26:49 +09:00
renovate[bot] 86d470f534 chore(deps): update dependency esbuild to v0.19.3 (#15416)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-17 23:25:57 +09:00
renovate[bot] 4553b88257 chore(deps): update dependency cspell to v7.3.6 (#15415)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-17 23:24:25 +09:00
renovate[bot] 8436d1b2a7 chore(deps): update dependency @angular/compiler to v16.2.5 (#15414)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-17 23:23:52 +09:00
renovate[bot] 8c038340c7 chore(deps): update babel to v7.22.20 (#15413)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-17 23:23:32 +09:00
SUZUKI Sosuke 4169dbb871 Fix printing comment for the last operand of union types (#15409) 2023-09-16 21:52:02 +09:00
SUZUKI Sosuke c041f3fb4f Support embedded formatting in template literals annotated with as const (#15408) 2023-09-16 21:42:17 +09:00
George Zahariev 675490ae55 Support as and satisfies expressions for Flow (#15130) 2023-09-16 17:28:18 +09:00
Joseph Frazier 825dbe3daa cleanup EditorConfig handling: Remove unused parsing/ignoring of insert_final_newline to insertFinalNewline (#15398)
EditorConfig handling: Remove parsing/ignoring of `insert_final_newline` to `insertFinalNewline`

Now that https://github.com/prettier/prettier/pull/15394 has been
merged, this addresses https://github.com/prettier/prettier/issues/14514#issuecomment-1471056464
2023-09-14 12:45:11 -04:00
fisker Cheung 6c833b4445 Support URL as ignorePath in getFileInfo() (#15364) 2023-09-14 20:10:10 +08:00
Joseph Frazier ae6f9ac25b Move editorconfig-to-prettier package into repo (#15394)
I'd like to vendor/upstream this code because it's been the topic of a handful of issues in its repo over the years, including https://github.com/josephfrazier/editorconfig-to-prettier/issues/9, https://github.com/josephfrazier/editorconfig-to-prettier/issues/21, and most recently https://github.com/josephfrazier/editorconfig-to-prettier/issues/24, and I feel that having it in-repo would be more appropriate (not to mention [the issues in _this_ repo that pertain to editorconfig parsing](https://github.com/search?q=repo%3Aprettier%2Fprettier+editorconfig++&type=issues&state=open)). I've elaborated on my thoughts in https://github.com/josephfrazier/editorconfig-to-prettier/issues/24#issuecomment-1718405985, which I'll quote below:

> hey @Drakmyth, thanks for continuing this conversation! I appreciate all the links you've provided that indicate existing intention and implementations of parsing non-standard/custom properties. It seems like this question might not be as simple as I thought it was previously.
> 
> @fisker, thanks for chiming in as well!
> 
> As you (@fisker) mentioned in [#16 (comment)](https://github.com/josephfrazier/editorconfig-to-prettier/pull/16#issuecomment-1486130040), this package was originally intended for use by Prettier, and while there are some other dependents (according to [github](https://github.com/josephfrazier/editorconfig-to-prettier/network/dependents?dependent_type=PACKAGE) and [npm](https://www.npmjs.com/package/editorconfig-to-prettier?activeTab=dependents)), Prettier is still the vast majority of the usage this package sees.
> 
> Given that, I think it might make sense for this package's code/functionality to move into the Prettier repository, so that any issues relating to it can be discussed where it's used. Personally, I don't use `.editorconfig` with Prettier, so I don't feel especially well-positioned to make decisions on how things should work, especially when [the output of this package is subsequently modified by Prettier](https://github.com/prettier/prettier/blob/7c512651f8814924a042034ff821190c68ef409d/src/config/resolve-editorconfig.js#L13-L16) (I think you had also [mentioned](https://github.com/prettier/prettier/issues/14514#issuecomment-1471056464) this previously, @fisker), indicating that its behavior is already divergent from the intended use case.
> 
> What do y'all think of that proposal? If we have https://github.com/prettier/prettier/ vendor this repository's code, then I can archive this repo and direct people to discuss functionality in the Prettier issues.

This also implements @fisker's suggested change to ES module syntax from https://github.com/josephfrazier/editorconfig-to-prettier/pull/16/, as it's required for lint/test etc to pass.

Once this is merged, I'll likely archive the https://github.com/josephfrazier/editorconfig-to-prettier/ repo after adding a note directing any visitors here instead.

---

* Vendor editorconfig-to-prettier.js from https://github.com/josephfrazier/editorconfig-to-prettier/blob/8bb8226c40d7f2c8cf629301576850876c8617d4/index.js

* WIP Use `require` instead of `import`

* Revert "WIP Use `require` instead of `import`"

This reverts commit 4656b727960822b3d9d0659b68c99d8fa9a9ba58.

* Use `export` in editorconfig-to-prettier.js instead of `module.exports`, see https://github.com/josephfrazier/editorconfig-to-prettier/pull/16/

Copied from https://raw.githubusercontent.com/josephfrazier/editorconfig-to-prettier/e245d7051f3e2a1153b82362ed241f3f7482ab18/index.js

* `yarn fix`

* Add tests/unit/editorconfig-to-prettier.js from https://github.com/josephfrazier/editorconfig-to-prettier/pull/16/

Copied from https://raw.githubusercontent.com/josephfrazier/editorconfig-to-prettier/9effd580e7b6722007e1ace9913512e450cda46f/test.js

* tests/unit/editorconfig-to-prettier.js: Fix path to implementation

* WIP Naively convert assert.deepEqual to expect/toStrictEqual, see https://github.com/prettier/prettier/pull/15394#issuecomment-1718623556

* Wrap `test()` around `expect` calls

* XXX Force a middle test to fail to ensure the syntax works

* Revert "XXX Force a middle test to fail to ensure the syntax works"

This reverts commit 947eb34e1175944ebebf0a6271e13af99adcd663.

* `yarn fix`
2023-09-14 07:31:45 -04:00