Release 3.6.0

This commit is contained in:
fisker committed 2025-06-23 10:00:51 +08:00
1 parent 9dfcdcb06a
commit e1c8095fd0
8 files changed
+73 -23

No files matched your search

@@ -325,6 +325,7 @@ Valid options:
- `"vue"` (same parser as `"html"`, but also formats vue-specific syntax) _First available in 1.10.0_
- `"angular"` (same parser as `"html"`, but also formats angular-specific syntax via [angular-estree-parser](https://github.com/ikatyang/angular-estree-parser)) _First available in 1.15.0_
- `"lwc"` (same parser as `"html"`, but also formats LWC-specific syntax for unquoted template attributes) _First available in 1.17.0_
- `"mjml"` (same parser as `"html"`, but also formats MJML-specific syntax) _First available in 3.6.0_
- `"yaml"` (via [yaml](https://github.com/eemeli/yaml) and [yaml-unist-parser](https://github.com/ikatyang/yaml-unist-parser)) _First available in 1.14.0_
| Default | CLI Override | API Override |
@@ -393,6 +394,34 @@ Note that “in tandem” doesn’t mean “at the same time”. When the two op
[adoption strategy]: https://prettier.io/blog/2017/05/03/1.3.0.html#facebook-adoption-update
## Check Ignore Pragma
_First available in v3.6.0_
Prettier can allow individual files to opt out of formatting if they contain a special comment, called a pragma, at the top of the file.
Checking for these markers incurs a small upfront cost during formatting, so it's not enabled by default.
A file with the following as its first comment will **not** be formatted when `--check-ignore-pragma` is supplied:
```js
/**
* @noprettier
*/
```
or
```js
/**
* @noformat
*/
```
| Default | CLI Override | API Override |
| ------- | ----------------------- | --------------------------- |
| `false` | `--check-ignore-pragma` | `checkIgnorePragma: <bool>` |
## Prose Wrap
_First available in v1.8.2_