Release 2.0.2
This commit is contained in:
1 parent
cfb6166296
commit
607afd7b36
11 files changed
+118
-103
No files matched your search
@@ -17,8 +17,8 @@ See [Usage](#usage) below for examples.
|
||||
### Global
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/prettier@2.0.1/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.1/parser-graphql.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.2/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.2/parser-graphql.js"></script>
|
||||
<script>
|
||||
prettier.format("query { }", {
|
||||
parser: "graphql",
|
||||
@@ -43,8 +43,8 @@ prettier.format("query { }", {
|
||||
|
||||
```js
|
||||
define([
|
||||
"https://unpkg.com/prettier@2.0.1/standalone.js",
|
||||
"https://unpkg.com/prettier@2.0.1/parser-graphql.js",
|
||||
"https://unpkg.com/prettier@2.0.2/standalone.js",
|
||||
"https://unpkg.com/prettier@2.0.2/parser-graphql.js",
|
||||
], (prettier, ...plugins) => {
|
||||
prettier.format("query { }", { parser: "graphql", plugins });
|
||||
});
|
||||
@@ -63,7 +63,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
|
||||
### Worker
|
||||
|
||||
```js
|
||||
importScripts("https://unpkg.com/prettier@2.0.1/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.1/parser-graphql.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.2/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.2/parser-graphql.js");
|
||||
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
|
||||
```
|
||||
@@ -25,5 +25,5 @@ npm install --global prettier
|
||||
If you use `npx` to run Prettier, the version should be pinned like this:
|
||||
|
||||
```bash
|
||||
npx prettier@2.0.1 . --write
|
||||
npx prettier@2.0.2 . --write
|
||||
```
|
||||
Reference in new issue
Block a user