Skip to content

Commit

Permalink
Tag syntax code blocks with js-nolint, part 8 (#20621)
Browse files Browse the repository at this point in the history
* Tag syntax code blocks with js-nolint, part 8

Adding to #19177

- Updating syntax code blocks with the new tag. Refer: mdn/yari#7017

* Update files/en-us/web/api/ndefreader/write/index.md

* Update files/en-us/web/api/ndefrecord/ndefrecord/index.md

Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
  • Loading branch information
OnkarRuikar and teoli2003 authored Sep 13, 2022
1 parent 8573240 commit b7556b7
Show file tree
Hide file tree
Showing 200 changed files with 228 additions and 228 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbobjectstore/index/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ to, for example, return a series of records sorted by that index using a cursor.

## Syntax

```js
```js-nolint
index(name)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbobjectstore/opencursor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To determine if the add operation has completed successfully, listen for the res

## Syntax

```js
```js-nolint
openCursor()
openCursor(query)
openCursor(query, direction)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbobjectstore/openkeycursor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ results's `success` event.

## Syntax

```js
```js-nolint
openKeyCursor()
openKeyCursor(query)
openKeyCursor(query, direction)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbobjectstore/put/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ record will be updated, instead of a new record being inserted.

## Syntax

```js
```js-nolint
put(item)
put(item, key)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbtransaction/abort/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ their {{domxref("IDBRequest.error")}} attribute set to an `AbortError` {{domxref

## Syntax

```js
```js-nolint
abort()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbtransaction/commit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If it is called on a transaction that is not active, it throws an `InvalidStateE

## Syntax

```js
```js-nolint
commit()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbtransaction/objectstore/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ transaction object, a different {{domxref("IDBObjectStore")}} instance is return

## Syntax

```js
```js-nolint
objectStore(name)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ when a version of the database has changed, as a result of the

## Syntax

```js
```js-nolint
new IDBVersionChangeEvent(type)
new IDBVersionChangeEvent(type, options)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idledeadline/timeremaining/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ should return control to the user agent's event loop.

## Syntax

```js
```js-nolint
timeRemaining()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idledetector/idledetector/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ with their device or the screen has locked.

## Syntax

```js
```js-nolint
new IdleDetector()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ whether to grant the origin access to their idle state. Resolves with

## Syntax

```js
```js-nolint
requestPermission()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idledetector/start/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ the idle detector.

## Syntax

```js
```js-nolint
start()
start(options)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ must be the same size as the array of input frequency values

## Syntax

```js
```js-nolint
getFrequencyResponse(frequencyArray, magResponseOutput, phaseResponseOutput)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/iirfilternode/iirfilternode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ which implements a general infinite impulse response filter.

## Syntax

```js
```js-nolint
new IIRFilterNode(context, options)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagebitmap/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ method disposes of all graphical resources associated with an `ImageBitmap`.

## Syntax

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ a spec change. The old name is being kept as an alias to avoid code breakage.

## Syntax

```js
```js-nolint
transferFromImageBitmap(bitmap)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ available configuration options.

## Syntax

```js
```js-nolint
getPhotoCapabilities()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagecapture/getphotosettings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ configuration settings.

## Syntax

```js
```js-nolint
getPhotoSettings()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagecapture/grabframe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ a {{domxref("ImageBitmap")}} containing the snapshot.

## Syntax

```js
```js-nolint
grabFrame()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagecapture/imagecapture/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ creates a new {{domxref("ImageCapture")}} object.

## Syntax

```js
```js-nolint
new ImageCapture(videoTrack)
```

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

## Syntax

```js
```js-nolint
takePhoto()
takePhoto(photoSettings)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagedata/imagedata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This constructor is the preferred way of creating such an object in a

## Syntax

```js
```js-nolint
new ImageData(width, height)
new ImageData(width, height, settings)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagedecoder/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`close()`** method of the {{domxref("ImageDecoder")}} interface ends all p

## Syntax

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

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagedecoder/decode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`decode()`** method of the {{domxref("ImageDecoder")}} interface enqueues

## Syntax

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

## Syntax

```js
```js-nolint
new ImageDecoder(init)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagedecoder/reset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`reset()`** method of the {{domxref("ImageDecoder")}} interface aborts all

## Syntax

```js
```js-nolint
reset()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ touch events on mobile browsers.

## Syntax

```js
```js-nolint
const boolean = InputDeviceCapabilities.firesTouchEvents
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ device responsible for generating a touch event.

## Syntax

```js
```js-nolint
new InputDeviceCapabilities()
new InputDeviceCapabilities(InputDeviceCapabilitiesInit)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`getCapabilities()`** method of the {{domxref("InputDeviceInfo")}} interfa

## Syntax

```js
```js-nolint
getCapabilities()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/inputevent/gettargetranges/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This allows web apps to override text edit behavior before the browser modifies

## Syntax

```js
```js-nolint
getTargetRanges()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/inputevent/inputevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`InputEvent()`** constructor creates a new {{domxref("InputEvent")}} objec

## Syntax

```js
```js-nolint
new InputEvent(type)
new InputEvent(type, options)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/installevent/installevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`InstallEvent()`** constructor creates a new {{domxref("InstallEvent")}} o

## Syntax

```js
```js-nolint
new InstallEvent(type, options)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for visibility changes.

## Syntax

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If the threshold list is empty, it's set to the array `[0.0]`.

## Syntax

```js
```js-nolint
new IntersectionObserver(callback)
new IntersectionObserver(callback, options)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/intersectionobserver/observe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ be processed by a single call to the callback.

## Syntax

```js
```js-nolint
observe(targetElement)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ call to the observer's callback.
## Syntax

```js
```js-nolint
takeRecords()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ element.

## Syntax

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

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/interventionreportbody/tojson/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`toJSON()`** method of the {{domxref("InterventionReportBody")}} interface

## Syntax

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

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboard/getlayoutmap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ functions for retrieving the strings associated with specific physical keys.

## Syntax

```js
```js-nolint
getLayoutMap()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboard/lock/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ system.

## Syntax

```js
```js-nolint
lock()
lock(keyCodes)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboard/unlock/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The **`unlock()`** method of the

## Syntax

```js
```js-nolint
unlock()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ current state of the specified modifier key: `true` if the modifier is active

## Syntax

```js
```js-nolint
getModifierState(key)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Web applications should use constructor instead of this if it's available.

## Syntax

```js
```js-nolint
initKeyboardEvent(type, canBubble, cancelable,
view, key, location, ctrlKey,
altKey, shiftKey, metaKey)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboardevent/initkeyevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ this way must have been created with the

## Syntax

```js
```js-nolint
initKeyEvent (type, bubbles, cancelable, view,
ctrlKey, altKey, shiftKey, metaKey,
keyCode, charCode)
Expand Down
Loading

0 comments on commit b7556b7

Please sign in to comment.