Skip to content

Commit e8ac9f8

Browse files
author
Sosuke Suzuki
committed
Release 3.1.0
1 parent 6a1d409 commit e8ac9f8

12 files changed

Lines changed: 66 additions & 46 deletions

File tree

.github/ISSUE_TEMPLATE/formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Don't fill the form below manually! Let a program create a report for you:
2626
2727
-->
2828

29-
**Prettier 3.0.3**
29+
**Prettier 3.1.0**
3030
[Playground link](https://prettier.io/playground/#.....)
3131

3232
```sh

.github/ISSUE_TEMPLATE/integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:
2020

2121
**Environments:**
2222

23-
- Prettier Version: 3.0.3
23+
- Prettier Version: 3.1.0
2424
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
2525
- Runtime: <!-- Node.js v14, Chrome v83, etc. -->
2626
- Operating System: <!-- Windows, Linux, macOS, etc. -->

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 3.1.0
2+
3+
[diff](https://github.com/prettier/prettier/compare/3.0.3...3.1.0)
4+
5+
🔗 [Release Notes](https://prettier.io/blog/2023/11/13/3.1.0.html)
6+
17
# 3.0.3
28

39
[diff](https://github.com/prettier/prettier/compare/3.0.2...3.0.3)

docs/browser.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Required options:
1818

1919
- **[`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.
2020

21-
- **`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 <https://unpkg.com/browse/prettier@3.0.3/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
21+
- **`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 <https://unpkg.com/browse/prettier@3.1.0/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
2222

2323
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
2424

@@ -29,8 +29,8 @@ See below for examples.
2929
### Global
3030

3131
```html
32-
<script src="https://unpkg.com/prettier@3.0.3/standalone.js"></script>
33-
<script src="https://unpkg.com/prettier@3.0.3/plugins/graphql.js"></script>
32+
<script src="https://unpkg.com/prettier@3.1.0/standalone.js"></script>
33+
<script src="https://unpkg.com/prettier@3.1.0/plugins/graphql.js"></script>
3434
<script>
3535
(async () => {
3636
const formatted = await prettier.format("type Query { hello: String }", {
@@ -47,8 +47,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
4747

4848
```html
4949
<script type="module">
50-
import * as prettier from "https://unpkg.com/prettier@3.0.3/standalone.mjs";
51-
import prettierPluginGraphql from "https://unpkg.com/prettier@3.0.3/plugins/graphql.mjs";
50+
import * as prettier from "https://unpkg.com/prettier@3.1.0/standalone.mjs";
51+
import prettierPluginGraphql from "https://unpkg.com/prettier@3.1.0/plugins/graphql.mjs";
5252
5353
const formatted = await prettier.format("type Query { hello: String }", {
5454
parser: "graphql",
@@ -61,8 +61,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
6161

6262
```js
6363
define([
64-
"https://unpkg.com/prettier@3.0.3/standalone.js",
65-
"https://unpkg.com/prettier@3.0.3/plugins/graphql.js",
64+
"https://unpkg.com/prettier@3.1.0/standalone.js",
65+
"https://unpkg.com/prettier@3.1.0/plugins/graphql.js",
6666
], async (prettier, ...plugins) => {
6767
const formatted = await prettier.format("type Query { hello: String }", {
6868
parser: "graphql",
@@ -90,8 +90,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
9090
### Worker
9191

9292
```js
93-
importScripts("https://unpkg.com/prettier@3.0.3/standalone.js");
94-
importScripts("https://unpkg.com/prettier@3.0.3/plugins/graphql.js");
93+
importScripts("https://unpkg.com/prettier@3.1.0/standalone.js");
94+
importScripts("https://unpkg.com/prettier@3.1.0/plugins/graphql.js");
9595

9696
(async () => {
9797
const formatted = await prettier.format("type Query { hello: String }", {
@@ -107,9 +107,9 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
107107

108108
```html
109109
<script type="module">
110-
import * as prettier from "https://unpkg.com/prettier@3.0.3/standalone.mjs";
111-
import prettierPluginBabel from "https://unpkg.com/prettier@3.0.3/plugins/babel.mjs";
112-
import prettierPluginEstree from "https://unpkg.com/prettier@3.0.3/plugins/estree.mjs";
110+
import * as prettier from "https://unpkg.com/prettier@3.1.0/standalone.mjs";
111+
import prettierPluginBabel from "https://unpkg.com/prettier@3.1.0/plugins/babel.mjs";
112+
import prettierPluginEstree from "https://unpkg.com/prettier@3.1.0/plugins/estree.mjs";
113113
114114
console.log(
115115
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {
@@ -125,10 +125,10 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
125125

126126
```html
127127
<script type="module">
128-
import * as prettier from "https://unpkg.com/prettier@3.0.3/standalone.mjs";
129-
import prettierPluginBabel from "https://unpkg.com/prettier@3.0.3/plugins/babel.mjs";
130-
import prettierPluginEstree from "https://unpkg.com/prettier@3.0.3/plugins/estree.mjs";
131-
import prettierPluginHtml from "https://unpkg.com/prettier@3.0.3/plugins/html.mjs";
128+
import * as prettier from "https://unpkg.com/prettier@3.1.0/standalone.mjs";
129+
import prettierPluginBabel from "https://unpkg.com/prettier@3.1.0/plugins/babel.mjs";
130+
import prettierPluginEstree from "https://unpkg.com/prettier@3.1.0/plugins/estree.mjs";
131+
import prettierPluginHtml from "https://unpkg.com/prettier@3.1.0/plugins/html.mjs";
132132
133133
console.log(
134134
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prettier",
3-
"version": "3.1.0-dev",
3+
"version": "3.1.0",
44
"description": "Prettier is an opinionated code formatter",
55
"bin": "./bin/prettier.cjs",
66
"repository": "prettier/prettier",

website/versioned_docs/version-stable/api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ await prettier.formatWithCursor(" 1", { cursorOffset: 2, parser: "babel" });
3434
// -> { formatted: '1;\n', cursorOffset: 1 }
3535
```
3636

37-
## `prettier.resolveConfig(filePath [, options])`
37+
## `prettier.resolveConfig(fileUrlOrPath [, options])`
3838

39-
`resolveConfig` can be used to resolve configuration for a given source file, passing its path as the first argument. The config search will start at the file path and continue to search up the directory (you can use `process.cwd()` to start searching from the current directory). Or you can pass directly the path of the config file as `options.config` if you don’t wish to search for it. A promise is returned which will resolve to:
39+
`resolveConfig` can be used to resolve configuration for a given source file, passing its path or url as the first argument. The config search will start at the file location and continue to search up the directory (you can use `process.cwd()` to start searching from the current directory). Or you can pass directly the path of the config file as `options.config` if you don’t wish to search for it. A promise is returned which will resolve to:
4040

4141
- An options object, providing a [config file](configuration.md) was found.
4242
- `null`, if no file was found.
@@ -58,7 +58,7 @@ If `options.editorconfig` is `true` and an [`.editorconfig` file](https://editor
5858
- `indent_size`/`tab_width`
5959
- `max_line_length`
6060

61-
## `prettier.resolveConfigFile([filePath])`
61+
## `prettier.resolveConfigFile([fileUrlOrPath])`
6262

6363
`resolveConfigFile` can be used to find the path of the Prettier configuration file that will be used when resolving the config (i.e. when calling `resolveConfig`). A promise is returned which will resolve to:
6464

@@ -67,7 +67,7 @@ If `options.editorconfig` is `true` and an [`.editorconfig` file](https://editor
6767

6868
The promise will be rejected if there was an error parsing the configuration file.
6969

70-
The search starts at `process.cwd()`, or at `filePath` if provided. Please see the [cosmiconfig docs](https://github.com/davidtheclark/cosmiconfig#explorersearch) for details on how the resolving works.
70+
The search starts at `process.cwd()`, or at `fileUrlOrPath` if provided. Please see the [lilconfig docs](https://github.com/antonk52/lilconfig) for details on how the resolving works.
7171

7272
```js
7373
const configFile = await prettier.resolveConfigFile(filePath);
@@ -78,7 +78,7 @@ const configFile = await prettier.resolveConfigFile(filePath);
7878

7979
When Prettier loads configuration files and plugins, the file system structure is cached for performance. This function will clear the cache. Generally this is only needed for editor integrations that know that the file system has changed since the last format took place.
8080

81-
## `prettier.getFileInfo(filePath [, options])`
81+
## `prettier.getFileInfo(fileUrlOrPath [, options])`
8282

8383
`getFileInfo` can be used by editor extensions to decide if a particular file needs to be formatted. This method returns a promise, which resolves to an object with the following properties:
8484

@@ -89,11 +89,11 @@ When Prettier loads configuration files and plugins, the file system structure i
8989
}
9090
```
9191

92-
The promise will be rejected if the type of `filePath` is not `string`.
92+
The promise will be rejected if the type of `fileUrlOrPath` is not `string` or `URL`.
9393

94-
Setting `options.ignorePath` (`string | string[]`) and `options.withNodeModules` (`boolean`) influence the value of `ignored` (`false` by default).
94+
Setting `options.ignorePath` (`string | URL | (string | URL)[]`) and `options.withNodeModules` (`boolean`) influence the value of `ignored` (`false` by default).
9595

96-
If the given `filePath` is ignored, the `inferredParser` is always `null`.
96+
If the given `fileUrlOrPath` is ignored, the `inferredParser` is always `null`.
9797

9898
Providing [plugin](plugins.md) paths in `options.plugins` (`string[]`) helps extract `inferredParser` for files that are not supported by Prettier core.
9999

website/versioned_docs/version-stable/browser.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Required options:
1919

2020
- **[`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.
2121

22-
- **`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 <https://unpkg.com/browse/prettier@3.0.3/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
22+
- **`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 <https://unpkg.com/browse/prettier@3.1.0/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
2323

2424
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
2525

@@ -30,8 +30,8 @@ See below for examples.
3030
### Global
3131

3232
```html
33-
<script src="https://unpkg.com/prettier@3.0.3/standalone.js"></script>
34-
<script src="https://unpkg.com/prettier@3.0.3/plugins/graphql.js"></script>
33+
<script src="https://unpkg.com/prettier@3.1.0/standalone.js"></script>
34+
<script src="https://unpkg.com/prettier@3.1.0/plugins/graphql.js"></script>
3535
<script>
3636
(async () => {
3737
const formatted = await prettier.format("type Query { hello: String }", {
@@ -48,8 +48,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
4848

4949
```html
5050
<script type="module">
51-
import * as prettier from "https://unpkg.com/prettier@3.0.3/standalone.mjs";
52-
import prettierPluginGraphql from "https://unpkg.com/prettier@3.0.3/plugins/graphql.mjs";
51+
import * as prettier from "https://unpkg.com/prettier@3.1.0/standalone.mjs";
52+
import prettierPluginGraphql from "https://unpkg.com/prettier@3.1.0/plugins/graphql.mjs";
5353
5454
const formatted = await prettier.format("type Query { hello: String }", {
5555
parser: "graphql",
@@ -62,8 +62,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
6262

6363
```js
6464
define([
65-
"https://unpkg.com/prettier@3.0.3/standalone.js",
66-
"https://unpkg.com/prettier@3.0.3/plugins/graphql.js",
65+
"https://unpkg.com/prettier@3.1.0/standalone.js",
66+
"https://unpkg.com/prettier@3.1.0/plugins/graphql.js",
6767
], async (prettier, ...plugins) => {
6868
const formatted = await prettier.format("type Query { hello: String }", {
6969
parser: "graphql",
@@ -91,8 +91,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
9191
### Worker
9292

9393
```js
94-
importScripts("https://unpkg.com/prettier@3.0.3/standalone.js");
95-
importScripts("https://unpkg.com/prettier@3.0.3/plugins/graphql.js");
94+
importScripts("https://unpkg.com/prettier@3.1.0/standalone.js");
95+
importScripts("https://unpkg.com/prettier@3.1.0/plugins/graphql.js");
9696

9797
(async () => {
9898
const formatted = await prettier.format("type Query { hello: String }", {
@@ -108,9 +108,9 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
108108

109109
```html
110110
<script type="module">
111-
import * as prettier from "https://unpkg.com/prettier@3.0.3/standalone.mjs";
112-
import prettierPluginBabel from "https://unpkg.com/prettier@3.0.3/plugins/babel.mjs";
113-
import prettierPluginEstree from "https://unpkg.com/prettier@3.0.3/plugins/estree.mjs";
111+
import * as prettier from "https://unpkg.com/prettier@3.1.0/standalone.mjs";
112+
import prettierPluginBabel from "https://unpkg.com/prettier@3.1.0/plugins/babel.mjs";
113+
import prettierPluginEstree from "https://unpkg.com/prettier@3.1.0/plugins/estree.mjs";
114114
115115
console.log(
116116
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {
@@ -126,10 +126,10 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
126126

127127
```html
128128
<script type="module">
129-
import * as prettier from "https://unpkg.com/prettier@3.0.3/standalone.mjs";
130-
import prettierPluginBabel from "https://unpkg.com/prettier@3.0.3/plugins/babel.mjs";
131-
import prettierPluginEstree from "https://unpkg.com/prettier@3.0.3/plugins/estree.mjs";
132-
import prettierPluginHtml from "https://unpkg.com/prettier@3.0.3/plugins/html.mjs";
129+
import * as prettier from "https://unpkg.com/prettier@3.1.0/standalone.mjs";
130+
import prettierPluginBabel from "https://unpkg.com/prettier@3.1.0/plugins/babel.mjs";
131+
import prettierPluginEstree from "https://unpkg.com/prettier@3.1.0/plugins/estree.mjs";
132+
import prettierPluginHtml from "https://unpkg.com/prettier@3.1.0/plugins/html.mjs";
133133
134134
console.log(
135135
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {

website/versioned_docs/version-stable/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Configuration File
44
original_id: configuration
55
---
66

7-
Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support. This means you can configure Prettier via (in order of precedence):
7+
Prettier uses [lilconfig](https://github.com/antonk52/lilconfig) for configuration file support. This means you can configure Prettier via (in order of precedence):
88

99
- A `"prettier"` key in your `package.json` file.
1010
- A `.prettierrc` file written in JSON or YAML.

website/versioned_docs/version-stable/ignore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ coverage
2525

2626
It’s recommended to have a `.prettierignore` in your project! This way you can run `prettier --write .` to make sure that everything is formatted (without mangling files you don’t want, or choking on generated files). And – your editor will know which files _not_ to format!
2727

28-
By default prettier ignores files in version control systems directories (".git", ".svn" and ".hg") and `node_modules` (if [`--with-node-modules` CLI option](cli.md#--with-node-modules) not specified)
28+
By default prettier ignores files in version control systems directories (".git", ".sl", ".svn" and ".hg") and `node_modules` (unless the [`--with-node-modules` CLI option](cli.md#--with-node-modules) is specified). Prettier will also follow rules specified in the ".gitignore" file if it exists in the same directory from which it is run.
2929

3030
So by default it will be
3131

website/versioned_docs/version-stable/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ build
4848
coverage
4949
```
5050

51-
> Tip! Base your .prettierignore on .gitignore and .eslintignore (if you have one).
51+
> Tip! Prettier will follow rules specified in .gitignore if it exists in the same directory from which it is run. You can also base your .prettierignore on .eslintignore (if you have one).
5252
5353
> Another tip! If your project isn’t ready to format, say, HTML files yet, add `*.html`.
5454

0 commit comments

Comments
 (0)