Release 2.1.1
This commit is contained in:
1 parent
ebe9e07716
commit
18bcaefc77
10 files changed
+105
-97
No files matched your search
+6
-6
@@ -18,8 +18,8 @@ See [Usage](#usage) below for examples.
|
||||
### Global
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/prettier@2.1.0/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.1.0/parser-graphql.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.1.1/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.1.1/parser-graphql.js"></script>
|
||||
<script>
|
||||
prettier.format("query { }", {
|
||||
parser: "graphql",
|
||||
@@ -46,8 +46,8 @@ prettier.format("query { }", {
|
||||
|
||||
```js
|
||||
define([
|
||||
"https://unpkg.com/prettier@2.1.0/standalone.js",
|
||||
"https://unpkg.com/prettier@2.1.0/parser-graphql.js",
|
||||
"https://unpkg.com/prettier@2.1.1/standalone.js",
|
||||
"https://unpkg.com/prettier@2.1.1/parser-graphql.js",
|
||||
], (prettier, ...plugins) => {
|
||||
prettier.format("query { }", { parser: "graphql", plugins });
|
||||
});
|
||||
@@ -66,7 +66,7 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
|
||||
### Worker
|
||||
|
||||
```js
|
||||
importScripts("https://unpkg.com/prettier@2.1.0/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.1.0/parser-graphql.js");
|
||||
importScripts("https://unpkg.com/prettier@2.1.1/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.1.1/parser-graphql.js");
|
||||
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
|
||||
```
|
||||
Reference in new issue
Block a user