Skip to content

Commit

Permalink
Tag syntax code blocks with js-nolint, part 10
Browse files Browse the repository at this point in the history
Adding to #19177

- Updating syntax code blocks with the new tag. Refer: mdn/yari#7017
  • Loading branch information
OnkarRuikar committed Sep 13, 2022
1 parent 7cf4b71 commit 49ee2e2
Show file tree
Hide file tree
Showing 200 changed files with 234 additions and 234 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/request/text/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The response is _always_ decoded using UTF-8.

## Syntax

```js
```js-nolint
text()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/resizeobserver/disconnect/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ or {{domxref('SVGElement')}} targets.

## Syntax

```js
```js-nolint
disconnect()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/resizeobserver/observe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`observe()`** method of the

## Syntax

```js
```js-nolint
observe(target)
observe(target, options)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/resizeobserver/resizeobserver/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ content or border box of an {{domxref('Element')}} or the bounding box of an

## Syntax

```js
```js-nolint
new ResizeObserver(callback)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/resizeobserver/unobserve/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`unobserve()`** method of the

## Syntax

```js
```js-nolint
unobserve(target)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/arraybuffer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ that resolves with an {{jsxref("ArrayBuffer")}}.

## Syntax

```js
```js-nolint
arrayBuffer()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/blob/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resolves with a {{domxref("Blob")}}.

## Syntax

```js
```js-nolint
blob()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/clone/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In fact, the main reason `clone()` exists is to allow multiple uses of body obje

## Syntax

```js
```js-nolint
clone()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/error/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The **`error()`** method of the {{domxref("Response")}} interface returns a new
## Syntax

```js
```js-nolint
error()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/formdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ that resolves with a {{domxref("FormData")}} object.
## Syntax

```js
```js-nolint
formData()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/json/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Note that despite the method being named `json()`, the result is not JSON but is

## Syntax

```js
```js-nolint
json()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/redirect/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The **`redirect()`** method of the {{domxref("Response")}} interface returns a `
## Syntax

```js
```js-nolint
redirect(url)
redirect(url, status)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/response/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`Response()`** constructor creates a new {{domxref("Response")}} object.

## Syntax

```js
```js-nolint
new Response()
new Response(body)
new Response(body, options)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/response/text/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The response is _always_ decoded using UTF-8.

## Syntax

```js
```js-nolint
text()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcdatachannel/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The sequence of events which occurs in response to this method being called:

## Syntax

```js
```js-nolint
close()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcdatachannel/send/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ the connection is closing or closed.
## Syntax

```js
```js-nolint
send(data)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ creates a new {{domxref("RTCDataChannelEvent")}} object.
## Syntax

```js
new RTCDataChannelEvent(type, options);
```js-nolint
new RTCDataChannelEvent(type, options)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcdtmfsender/insertdtmf/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Since `insertDTMF()` replaces the tone buffer, in order to add to the DTMF tones

## Syntax

```js
```js-nolint
insertDTMF(tones)
insertDTMF(tones, duration)
insertDTMF(tones, duration, interToneGap)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`RTCDTMFToneChangeEvent()`** constructor creates a new

## Syntax

```js
```js-nolint
new RTCDTMFToneChangeEvent(type)
new RTCDTMFToneChangeEvent(type, options)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ be configured to represent a single {{Glossary("ICE")}} candidate.

## Syntax

```js
```js-nolint
new RTCIceCandidate()
new RTCIceCandidate(candidateInfo)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/tojson/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A stringified version of the object can then be obtained by calling {{jsxref("JS

## Syntax

```js
```js-nolint
toJSON()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ You can get the outgoing available bitrate from

## Syntax

```js
availableIncomingBitrate = rtcIceCandidatePairStats.availableIncomingBitrate;
```js-nolint
availableIncomingBitrate = rtcIceCandidatePairStats.availableIncomingBitrate
```

### Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ reports the number of bytes received so far on the described connection.

## Syntax

```js
sent = rtcIceCandidatePairStats.bytesSent;
```js-nolint
sent = rtcIceCandidatePairStats.bytesSent
```

### Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ described by the pair of candidates.

## Syntax

```js
consentRequestsSent = rtcIceCandidatePairStats.consentRequestsSent;
```js-nolint
consentRequestsSent = rtcIceCandidatePairStats.consentRequestsSent
```

### Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ candidates.

## Syntax

```js
rtt = rtcIceCandidatePairStats.currentRoundTripTime;
```js-nolint
rtt = rtcIceCandidatePairStats.currentRoundTripTime
```

### Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ The _non-standard_, Firefox-specific {{domxref("RTCIceCandidatePairStats")}} pro

## Syntax

```js
isSelected = icpStats.selected;
```js-nolint
icpStats.selected
```

### Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ type of {{Glossary("ICE")}} candidate the object represents.

## Syntax

```js
candidateType = rtcIceCandidateStats.candidateType;
```js-nolint
rtcIceCandidateStats.candidateType
```

### Value
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/rtcicecandidatestats/priority/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ the more desirable the candidate is.

## Syntax

```js
priority = rtcIceCandidateStats.priority;
```js-nolint
priority = rtcIceCandidateStats.priority
```

### Value
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtciceserver/credential/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ other secret.
## Syntax

```js
```js-nolint
const iceServer = {
// ...
credential: someCredential,
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtciceserver/credentialtype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The default is `password`.

## Syntax

```js
```js-nolint
const iceServer = {
// ...
credentialType: newCredentialType,
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtciceserver/url/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ property instead.

## Syntax

```js
```js-nolint
const iceServer = {
// ...
url: iceServerUrl,
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtciceserver/urls/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ are typically STUN and/or TURN servers.

## Syntax

```js
```js-nolint
const iceServer = {
urls: iceServerUrl, /* or an array or URLs: [ url1, ..., urlN ] */
username: "webrtc", // optional
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtciceserver/username/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ property is a string which specifies the username to use when authenticating wit
## Syntax

```js
```js-nolint
const iceServer = {
// ...
username: someUsername,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ forward the candidates to the remote peer.

## Syntax

```js
```js-nolint
getLocalCandidates()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ transport when the client calls {{domxref("RTCPeerConnection.setLocalDescription

## Syntax

```js
```js-nolint
getLocalParameters()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ returned by this function.

## Syntax

```js
```js-nolint
getRemoteCandidates()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ transport when the client calls

## Syntax

```js
parameters = RTCIceTransport.getRemoteParameters();
```js-nolint
parameters = RTCIceTransport.getRemoteParameters()
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ of {{Glossary("ICE")}} candidates describing the configuration of the endpoints

## Syntax

```js
```js-nolint
getSelectedCandidatePair()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ transit.

## Syntax

```js
const fecPacketsReceived = rtcInboundRtpStreamStats.fecPacketsReceived;
```js-nolint
const fecPacketsReceived = rtcInboundRtpStreamStats.fecPacketsReceived
```

### Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This is covered in more detail in the articles [WebRTC connectivity](/en-US/docs

## Syntax

```js
```js-nolint
addIceCandidate(candidate)
addIceCandidate(candidate, successCallback)
addIceCandidate(candidate, successCallback, failureCallback) // deprecated
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/rtcpeerconnection/addstream/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ be repeated to consider the new stream.

## Syntax

```js
rtcPeerConnection.addStream(mediaStream);
```js-nolint
rtcPeerConnection.addStream(mediaStream)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcpeerconnection/addtrack/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ which will be transmitted to the other peer.>
## Syntax

```js
```js-nolint
addTrack(track)
addTrack(track, stream0)
addTrack(track, stream0, stream1)
Expand Down
Loading

0 comments on commit 49ee2e2

Please sign in to comment.