diff --git a/changelog_unreleased/api/10122.md b/changelog_unreleased/api/10122.md index 5cc6e6219..5d228bbb6 100644 --- a/changelog_unreleased/api/10122.md +++ b/changelog_unreleased/api/10122.md @@ -1,4 +1,4 @@ -#### Fix `lineSuffixBoundary` (#10122 by @thorn0) +#### Fix `lineSuffixBoundary` IR command (#10122 by @thorn0) There was a bug in the implementation of the [`lineSuffixBoundary`][lsb] command that significantly limited its usefulness: the printer algorithm didn't correctly consider it a potential line break. Now that the bug has been fixed, we urge plugin authors to give this command another try and see if it can help them simplify printing of trailing comments. diff --git a/changelog_unreleased/api/10557.md b/changelog_unreleased/api/10557.md index 3e2afefcb..2716b3e9f 100644 --- a/changelog_unreleased/api/10557.md +++ b/changelog_unreleased/api/10557.md @@ -33,3 +33,5 @@ To print a sub-property of the current node, use `["property1", "property2"]`: + return print(["child", "child"]); } ``` + +See also an example in the [docs](https://prettier.io/docs/en/plugins.html#print). diff --git a/changelog_unreleased/cli/10058.md b/changelog_unreleased/cli/10058.md index d84003d87..0f3d70c82 100644 --- a/changelog_unreleased/cli/10058.md +++ b/changelog_unreleased/cli/10058.md @@ -3,13 +3,13 @@ The following command will not throw an error when it doesn't find a YAML file. ```sh -// Prettier stable +# Prettier stable $ npx prettier --check "prettier/docs/*.yaml" Checking formatting... [error] No files matching the pattern were found: "prettier/docs/*.yaml". All matched files use Prettier code style! -// Prettier main +# Prettier main $ npx prettier --check --no-error-on-unmatched-pattern "prettier/docs/*.yaml" Checking formatting... All matched files use Prettier code style! diff --git a/changelog_unreleased/cli/10217.md b/changelog_unreleased/cli/10217.md index aba596519..e260bfc72 100644 --- a/changelog_unreleased/cli/10217.md +++ b/changelog_unreleased/cli/10217.md @@ -10,7 +10,7 @@ tests\flow-repo\config_module_system_node_resolve_dirname\custom_resolve_dir\tes tests\flow-repo\config_module_system_node_resolve_dirname\subdir\custom_resolve_ All matched files use Prettier code style! -// Prettier main +# Prettier main $ prettier tests/flow-repo/config_module_system_node_resolve_dirname --check Checking formatting... All matched files use Prettier code style! diff --git a/changelog_unreleased/css/9966.md b/changelog_unreleased/css/9966.md index 1e64d1d1b..9fc31c4ec 100644 --- a/changelog_unreleased/css/9966.md +++ b/changelog_unreleased/css/9966.md @@ -1,9 +1,10 @@ -#### Fix absolute path in custom CSS -custom-url() calls (#9966 by @vjeux) +#### Fix absolute path in custom CSS `-custom-url()` calls (#9966 by @vjeux) The CSS parser is parsing this as `["division", "absolute/path"]` instead of a single `"/absolute/path"` token unless you are in a `url()` call. Because we put space after division, it results in an incorrect path. The fix was to avoid printing a space if a division is the first token of a call, which hopefully should be safe. ```css +/* Input */ -custom-url(/absolute/path) /* Prettier stable */ diff --git a/changelog_unreleased/flow/9767.md b/changelog_unreleased/flow/9767.md index 295391284..72dcbc0ac 100644 --- a/changelog_unreleased/flow/9767.md +++ b/changelog_unreleased/flow/9767.md @@ -1,4 +1,4 @@ -#### Fix missing semi in `declare export * from …` (#9767 by @fisker) +#### Fix missing semicolon in `declare export * from …` (#9767 by @fisker) diff --git a/changelog_unreleased/graphql/10689.md b/changelog_unreleased/graphql/10689.md index 0a3ccbb6c..491011d69 100644 --- a/changelog_unreleased/graphql/10689.md +++ b/changelog_unreleased/graphql/10689.md @@ -1,4 +1,4 @@ -#### Fix missing space after keyword in anonymous graphql operations (#10689 by @patriscus) +#### Fix missing space after keyword in anonymous operations (#10689 by @patriscus) ```graphql diff --git a/changelog_unreleased/handlebars/10145.md b/changelog_unreleased/handlebars/10145.md index 2ba7277f5..851eaaaae 100644 --- a/changelog_unreleased/handlebars/10145.md +++ b/changelog_unreleased/handlebars/10145.md @@ -6,19 +6,19 @@ - implement simple formatting for the `class` attribute, like Prettier formatted it in HTML before v2.3.0 -```html -// Input +```hbs +{{!-- Input --}}
-// Prettier stable +{{!-- Prettier stable --}} -// Prettier main +{{!-- Prettier main --}} diff --git a/changelog_unreleased/handlebars/9978.md b/changelog_unreleased/handlebars/9978.md index acd3a9c96..74b108394 100644 --- a/changelog_unreleased/handlebars/9978.md +++ b/changelog_unreleased/handlebars/9978.md @@ -1,7 +1,8 @@ -#### Print final blockParam on its own line (#9978 by @dcyriller) +#### Print final `blockParam` on its own line (#9978 by @dcyriller) ```hbs +{{!-- Input --}}