-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zh-cn: Format /web/api using Prettier (part 1) #14673
Conversation
abort(); | ||
abort(reason); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a handy update
abort(); | |
abort(reason); | |
AbortSignal.abort() | |
AbortSignal.abort(reason) |
@@ -23,8 +23,8 @@ return controller.signal; | |||
## 语法 | |||
|
|||
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have nolint
```js | |
```js-nolint |
@@ -14,7 +14,7 @@ slug: Web/API/AbortSignal/throwIfAborted | |||
## 语法 | |||
|
|||
```js | |||
throwIfAborted() | |||
throwIfAborted(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API part may contain a lot of code without nolint :(
throwIfAborted(); | |
throwIfAborted() |
@@ -14,7 +14,7 @@ slug: Web/API/AbortSignal/throwIfAborted | |||
## 语法 | |||
|
|||
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```js | |
```js-nolint |
@@ -17,7 +17,7 @@ original_slug: Web/API/AbortSignal/timeout | |||
## 语法 | |||
|
|||
```js | |||
timeout(time) | |||
timeout(time); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeout(time); | |
AbortSignal.timeout(time) |
@@ -17,7 +17,7 @@ original_slug: Web/API/AbortSignal/timeout | |||
## 语法 | |||
|
|||
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```js | |
```js-nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @queengooborg , I've allowed myself to fix some occurences where 'nolint' should be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that we should not put anything in 5th param of EmbedLiveSample, or build would broke up.
I'm not sure if we should do a scan to batch remove 5th param in en-US content.
/cc @yin1999
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There does have a issue: mdn/content#25005
Preview URLs (100 pages)
Flaws (377)Note! 18 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
|
This PR formats the
/web/api
folder of the Simplified Chinese locale using Prettier. This is the first part.