From 419e479ea8832a5f1c00a6750bbdded26e135c53 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 4 Feb 2024 14:38:41 +0900 Subject: [PATCH 001/211] Update dependents count --- website/pages/en/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/pages/en/index.js b/website/pages/en/index.js index d0a51d4ac926..889c62aca82a 100755 --- a/website/pages/en/index.js +++ b/website/pages/en/index.js @@ -321,7 +321,7 @@ const UsersSection = ({ language }) => {

More than{" "} - 7.2 million{" "} + 7.3 million{" "} dependent repositories on GitHub

@@ -9371,7 +9371,7 @@ bindon-ngModel [ngClass]="{ bad: false, curly: true, - special: true + special: true, }" > Curly diff --git a/tests/format/angular/trailing-comma/__snapshots__/format.test.js.snap b/tests/format/angular/trailing-comma/__snapshots__/format.test.js.snap new file mode 100644 index 000000000000..4f734d6a6f49 --- /dev/null +++ b/tests/format/angular/trailing-comma/__snapshots__/format.test.js.snap @@ -0,0 +1,622 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`trailing-comma.html - {"trailingComma":"all"} format 1`] = ` +====================================options===================================== +parsers: ["angular"] +printWidth: 80 +trailingComma: "all" + | printWidth +=====================================input====================================== +
+ +=====================================output===================================== +
+ +================================================================================ +`; + +exports[`trailing-comma.html - {"trailingComma":"es5"} format 1`] = ` +====================================options===================================== +parsers: ["angular"] +printWidth: 80 +trailingComma: "es5" + | printWidth +=====================================input====================================== +
+ +=====================================output===================================== +
+ +================================================================================ +`; + +exports[`trailing-comma.html - {"trailingComma":"none"} format 1`] = ` +====================================options===================================== +parsers: ["angular"] +printWidth: 80 +trailingComma: "none" + | printWidth +=====================================input====================================== +
+ +=====================================output===================================== +
+ +================================================================================ +`; diff --git a/tests/format/angular/trailing-comma/format.test.js b/tests/format/angular/trailing-comma/format.test.js new file mode 100644 index 000000000000..08fb6de70833 --- /dev/null +++ b/tests/format/angular/trailing-comma/format.test.js @@ -0,0 +1,3 @@ +runFormatTest(import.meta, ["angular"], { trailingComma: "none" }); +runFormatTest(import.meta, ["angular"], { trailingComma: "es5" }); +runFormatTest(import.meta, ["angular"], { trailingComma: "all" }); diff --git a/tests/format/angular/trailing-comma/trailing-comma.html b/tests/format/angular/trailing-comma/trailing-comma.html new file mode 100644 index 000000000000..7e40dc499c6e --- /dev/null +++ b/tests/format/angular/trailing-comma/trailing-comma.html @@ -0,0 +1,56 @@ +
From c4ab460357478d2b847c60a1efb40098b1181931 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 2 Jun 2024 02:01:15 +0900 Subject: [PATCH 164/211] Release 3.3.0 --- .github/ISSUE_TEMPLATE/formatting.md | 2 +- .github/ISSUE_TEMPLATE/integration.md | 2 +- CHANGELOG.md | 6 ++++ docs/browser.md | 32 +++++++++---------- package.json | 2 +- .../versioned_docs/version-stable/browser.md | 32 +++++++++---------- .../version-stable/configuration.md | 16 +++++++--- .../versioned_docs/version-stable/editors.md | 2 +- .../versioned_docs/version-stable/install.md | 2 +- .../versioned_docs/version-stable/plugins.md | 6 ++-- .../version-stable/precommit.md | 21 ++---------- 11 files changed, 60 insertions(+), 63 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index bda691f16817..a5330db4cc03 100644 --- a/.github/ISSUE_TEMPLATE/formatting.md +++ b/.github/ISSUE_TEMPLATE/formatting.md @@ -26,7 +26,7 @@ Don't fill the form below manually! Let a program create a report for you: --> -**Prettier 3.2.5** +**Prettier 3.3.0** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 02019b0d4ed8..e1e0e1bb7cb5 100644 --- a/.github/ISSUE_TEMPLATE/integration.md +++ b/.github/ISSUE_TEMPLATE/integration.md @@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE: **Environments:** -- Prettier Version: 3.2.5 +- Prettier Version: 3.3.0 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 50a755ca7176..3f419f156849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 3.3.0 + +[diff](https://github.com/prettier/prettier/compare/3.2.5...3.3.0) + +🔗 [Release Notes](https://prettier.io/blog/2024/06/01/3.3.0.html) + # 3.2.5 [diff](https://github.com/prettier/prettier/compare/3.2.4...3.2.5) diff --git a/docs/browser.md b/docs/browser.md index dd27f80db820..1b9651944857 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -18,7 +18,7 @@ Required options: - **[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use. -- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in . Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON. +- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in . Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON. You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option. @@ -29,8 +29,8 @@ See below for examples. ### Global ```html - - + + - + + - + + - + + - + + - + +