Skip to content

Commit e788e8d

Browse files
committed
Release 1.19.0
1 parent 057e15d commit e788e8d

16 files changed

Lines changed: 54 additions & 30 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 @@ Tip! Don't write this stuff manually.
2626
2727
-->
2828

29-
**Prettier 1.18.2**
29+
**Prettier 1.19.0**
3030
[Playground link](https://prettier.io/playground/#.....)
3131
```sh
3232
# Options (if any):

.github/ISSUE_TEMPLATE/integration.md

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

2121
**Environments:**
22-
- Prettier Version: 1.18.2
22+
- Prettier Version: 1.19.0
2323
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
2424
- Runtime: <!-- Node.js v6, Chrome v67, etc. -->
2525
- 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+
# 1.19.0
2+
3+
[diff](https://github.com/prettier/prettier/compare/1.18.2...1.19.0)
4+
5+
🔗 [Release Notes](https://prettier.io/blog/2019/11/09/1.19.0.html)
6+
17
# 1.18.2
28

39
[diff](https://github.com/prettier/prettier/compare/1.18.1...1.18.2)

docs/browser.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ See [Usage](#usage) below for examples.
1616
### Global
1717

1818
```html
19-
<script src="https://unpkg.com/prettier@1.18.2/standalone.js"></script>
20-
<script src="https://unpkg.com/prettier@1.18.2/parser-graphql.js"></script>
19+
<script src="https://unpkg.com/prettier@1.19.0/standalone.js"></script>
20+
<script src="https://unpkg.com/prettier@1.19.0/parser-graphql.js"></script>
2121
<script>
2222
prettier.format("query { }", {
2323
parser: "graphql",
@@ -42,8 +42,8 @@ prettier.format("query { }", {
4242

4343
```js
4444
define([
45-
"https://unpkg.com/prettier@1.18.2/standalone.js",
46-
"https://unpkg.com/prettier@1.18.2/parser-graphql.js"
45+
"https://unpkg.com/prettier@1.19.0/standalone.js",
46+
"https://unpkg.com/prettier@1.19.0/parser-graphql.js"
4747
], (prettier, ...plugins) => {
4848
prettier.format("query { }", { parser: "graphql", plugins });
4949
});
@@ -62,7 +62,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
6262
### Worker
6363

6464
```js
65-
importScripts("https://unpkg.com/prettier@1.18.2/standalone.js");
66-
importScripts("https://unpkg.com/prettier@1.18.2/parser-graphql.js");
65+
importScripts("https://unpkg.com/prettier@1.19.0/standalone.js");
66+
importScripts("https://unpkg.com/prettier@1.19.0/parser-graphql.js");
6767
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
6868
```

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": "1.19.0-beta.1",
3+
"version": "1.19.0",
44
"description": "Prettier is an opinionated code formatter",
55
"bin": {
66
"prettier": "./bin/prettier.js"

website/versioned_docs/version-stable/api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ prettier.resolveConfig(filePath).then(options => {
5050
});
5151
```
5252

53-
If `options.editorconfig` is `true` and an [`.editorconfig` file](http://editorconfig.org/) is in your project, Prettier will parse it and convert its properties to the corresponding prettier configuration. This configuration will be overridden by `.prettierrc`, etc. Currently, the following EditorConfig properties are supported:
53+
If `options.editorconfig` is `true` and an [`.editorconfig` file](https://editorconfig.org/) is in your project, Prettier will parse it and convert its properties to the corresponding prettier configuration. This configuration will be overridden by `.prettierrc`, etc. Currently, the following EditorConfig properties are supported:
5454

5555
- `end_of_line`
5656
- `indent_style`
@@ -101,6 +101,8 @@ Setting `options.ignorePath` (`string`) and `options.withNodeModules` (`boolean`
101101

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

104+
When setting `options.resolveConfig` (`boolean`, default `false`), Prettier will resolve the configuration for the given `filePath`. This is useful, for example, when the `inferredParser` might be overridden for a subset of files.
105+
104106
Use `prettier.getFileInfo.sync(filePath [, options])` if you'd like to use sync version.
105107

106108
## `prettier.getSupportInfo([version])`

website/versioned_docs/version-stable/browser.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Browser
44
original_id: browser
55
---
66

7-
Run Prettier in the browser with the `standalone.js` UMD bundle shipped in the NPM package (starting in version 1.13). The new UMD bundle only formats the code and has no support for config files, ignore files, CLI usage, or automatic loading of plugins.
7+
Run Prettier in the browser with the `standalone.js` UMD bundle shipped in the NPM package (starting in version 1.13). The UMD bundle only formats the code and has no support for config files, ignore files, CLI usage, or automatic loading of plugins.
88

99
### `prettier.format(code, options)`
1010

@@ -16,12 +16,14 @@ See [Usage](#usage) below for examples.
1616

1717
### Global
1818

19-
<!-- prettier-ignore -->
2019
```html
21-
<script src="https://unpkg.com/[email protected]/standalone.js"></script>
22-
<script src="https://unpkg.com/[email protected]/parser-graphql.js"></script>
23-
<script type="text/javascript">
24-
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
20+
<script src="https://unpkg.com/[email protected]/standalone.js"></script>
21+
<script src="https://unpkg.com/[email protected]/parser-graphql.js"></script>
22+
<script>
23+
prettier.format("query { }", {
24+
parser: "graphql",
25+
plugins: prettierPlugins
26+
});
2527
</script>
2628
```
2729

@@ -41,8 +43,8 @@ prettier.format("query { }", {
4143

4244
```js
4345
define([
44-
"https://unpkg.com/prettier@1.13.0/standalone.js",
45-
"https://unpkg.com/prettier@1.13.0/parser-graphql.js"
46+
"https://unpkg.com/prettier@1.19.0/standalone.js",
47+
"https://unpkg.com/prettier@1.19.0/parser-graphql.js"
4648
], (prettier, ...plugins) => {
4749
prettier.format("query { }", { parser: "graphql", plugins });
4850
});
@@ -61,7 +63,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
6163
### Worker
6264

6365
```js
64-
importScripts("https://unpkg.com/prettier@1.13.0/standalone.js");
65-
importScripts("https://unpkg.com/prettier@1.13.0/parser-graphql.js");
66+
importScripts("https://unpkg.com/prettier@1.19.0/standalone.js");
67+
importScripts("https://unpkg.com/prettier@1.19.0/parser-graphql.js");
6668
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
6769
```

website/versioned_docs/version-stable/cli.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In practice, this may look something like:
1818
prettier --single-quote --trailing-comma es5 --write "{app,__{tests,mocks}__}/**/*.js"
1919
```
2020

21-
Don't forget the quotes around the globs! The quotes make sure that Prettier expands the globs rather than your shell, for cross-platform usage. The [glob syntax from the `fast-glob` module](https://github.com/mrmlnc/fast-glob/blob/master/README.md#pattern-syntax) is used.
21+
Don't forget the quotes around the globs! The quotes make sure that Prettier expands the globs rather than your shell, for cross-platform usage. The [glob syntax from the glob module](https://github.com/isaacs/node-glob/blob/master/README.md#glob-primer) is used.
2222

2323
Prettier CLI will ignore files located in `node_modules` directory. To opt-out from this behavior use `--with-node-modules` flag.
2424

@@ -149,8 +149,6 @@ Prettier CLI will ignore files located in `node_modules` directory. To opt-out f
149149

150150
This rewrites all processed files in place. This is comparable to the `eslint --fix` workflow.
151151

152-
To avoid re-checking unchanged files, use the `--only-changed` flag.
153-
154152
## `--loglevel`
155153

156154
Change the level of logging for the CLI. Valid options are:

website/versioned_docs/version-stable/comparison.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ original_id: comparison
88

99
Linters have two categories of rules:
1010

11-
**Formatting rules**: eg: [max-len](http://eslint.org/docs/rules/max-len), [no-mixed-spaces-and-tabs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs), [keyword-spacing](http://eslint.org/docs/rules/keyword-spacing), [comma-style](http://eslint.org/docs/rules/comma-style)...
11+
**Formatting rules**: eg: [max-len](https://eslint.org/docs/rules/max-len), [no-mixed-spaces-and-tabs](https://eslint.org/docs/rules/no-mixed-spaces-and-tabs), [keyword-spacing](https://eslint.org/docs/rules/keyword-spacing), [comma-style](https://eslint.org/docs/rules/comma-style)...
1212

1313
Prettier alleviates the need for this whole category of rules! Prettier is going to reprint the entire program from scratch in a consistent way, so it's not possible for the programmer to make a mistake there anymore :)
1414

15-
**Code-quality rules**: eg [no-unused-vars](http://eslint.org/docs/rules/no-unused-vars), [no-extra-bind](http://eslint.org/docs/rules/no-extra-bind), [no-implicit-globals](http://eslint.org/docs/rules/no-implicit-globals), [prefer-promise-reject-errors](http://eslint.org/docs/rules/prefer-promise-reject-errors)...
15+
**Code-quality rules**: eg [no-unused-vars](https://eslint.org/docs/rules/no-unused-vars), [no-extra-bind](https://eslint.org/docs/rules/no-extra-bind), [no-implicit-globals](https://eslint.org/docs/rules/no-implicit-globals), [prefer-promise-reject-errors](https://eslint.org/docs/rules/prefer-promise-reject-errors)...
1616

1717
Prettier does nothing to help with those kind of rules. They are also the most important ones provided by linters as they are likely to catch real bugs with your code!

website/versioned_docs/version-stable/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ singleQuote = true
6464

6565
Overrides let you have different configuration for certain file extensions, folders and specific files.
6666

67-
Prettier borrows ESLint’s [override format](http://eslint.org/docs/user-guide/configuring#example-configuration).
67+
Prettier borrows ESLint’s [override format](https://eslint.org/docs/user-guide/configuring#example-configuration).
6868

6969
JSON:
7070

0 commit comments

Comments
 (0)