Skip to content

Commit

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

Adding to mdn#19177

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
  • Loading branch information
2 people authored and Himanshu Garg committed Sep 27, 2022
1 parent 10f3f2f commit 6cf95b2
Show file tree
Hide file tree
Showing 200 changed files with 219 additions and 219 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ the child entry as the last array item.

## Syntax

```js
const pathArr = FileSystemDirectoryHandle.resolve(possibleDescendant);
```js-nolint
resolve(possibleDescendant)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/filesystemdirectoryhandle/values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ object.

## Syntax

```js
FileSystemDirectoryHandle.values();
```js-nolint
values()
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Generally, they are either {{domxref("FileSystemFileEntry")}} objects, which rep

## Syntax

```js
```js-nolint
readEntries(successCallback)
readEntries(successCallback, errorCallback)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filesystementry/copyto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typical restrictions on what you can do:

## Syntax

```js
```js-nolint
copyTo(newParent)
copyTo(newParent, newName)
copyTo(newParent, newName, successCallback)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filesystementry/getmetadata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ its modification date and time and its size.

## Syntax

```js
```js-nolint
getMetadata(successCallback)
getMetadata(successCallback, errorCallback)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filesystementry/getparent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The {{domxref("FileSystemEntry")}} interface's method

## Syntax

```js
```js-nolint
getParent(successCallback, errorCallback)
getParent(successCallback)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filesystementry/moveto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ restrictions on what you can do:

## Syntax

```js
```js-nolint
moveTo(newParent, newName)
moveTo(newParent, newName, successCallback)
moveTo(newParent, newName, successCallback, errorCallback)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filesystementry/remove/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ instead.

## Syntax

```js
```js-nolint
remove(successCallback)
remove(successCallback, errorCallback)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filesystementry/tourl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ the value of `src` and `href` attributes.

## Syntax

```js
```js-nolint
toURL()
toURL(mimeType)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ which can be used to write data into the file represented by the directory entry

## Syntax

```js
```js-nolint
createWriter(successCallback)
createWriter(successCallback, errorCallback)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filesystemfileentry/file/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ the directory entry.

## Syntax

```js
```js-nolint
file(successCallback)
file(successCallback, errorCallback)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ the temporary file when the writable filestream is closed.

## Syntax

```js
const fileStreamPromise = FileSystemFileHandle.createWritable();
```js-nolint
createWritable()
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/filesystemfilehandle/getfile/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ If the file on disk changes or is removed after this method is called, the retur

## Syntax

```js
const filePromise = FileSystemFileHandle.getFile();
```js-nolint
getFile()
```

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

## Syntax

```js
```js-nolint
isSameEntry(fileSystemHandle)
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/filesystemhandle/querypermission/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ current handle.

## Syntax

```js
queryPermission(FileSystemHandlePermissionDescriptor)
```js-nolint
queryPermission(fileSystemHandlePermissionDescriptor)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ file handle.

## Syntax

```js
requestPermission(FileSystemHandlePermissionDescriptor)
```js-nolint
requestPermission(fileSystemHandlePermissionDescriptor)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ offset to the position (in bytes) specified when calling the method.

## Syntax

```js
FileSystemWritableStream.seek(position).then(/**/);
```js-nolint
seek(position)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Changes are typically written to a temporary file instead.

## Syntax

```js
FileSystemWritableFileStream.truncate().then(/**/);
```js-nolint
truncate()
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ file contains.

## Syntax

```js
```js-nolint
write(data)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/focusevent/focusevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set to the other target.

## Syntax

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

## Syntax

```js
```js-nolint
new FontFace(family, source)
new FontFace(family, source, descriptors)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontface/load/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ If the `source` for the font face was specified as binary data, or the font {{do

## Syntax

```js
```js-nolint
load()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/add/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`add()`** method of the {{domxref("FontFaceSet")}} interface adds a new fo

## Syntax

```js
```js-nolint
add(font)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/check/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fonts in the given font list have been loaded and are available.

## Syntax

```js
```js-nolint
check(font)
check(font, text)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/clear/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`clear()`** method of the {{domxref("FontFaceSet")}} interface removes all

## Syntax

```js
```js-nolint
clear()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`delete()`** method of the {{domxref("FontFaceSet")}} interface removes a

## Syntax

```js
```js-nolint
delete(font)
```

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

## Syntax

```js
```js-nolint
entries()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/foreach/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`forEach()`** method of the {{domxref("FontFaceSet")}} interface executes

## Syntax

```js
```js-nolint
forEach(callbackFn)
forEach(callbackFn, thisArg)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/has/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`has()`** method of the {{domxref("FontFaceSet")}} interface returns a {{j

## Syntax

```js
```js-nolint
has(value)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`keys()`** method of the {{domxref("FontFaceSet")}} interface is an alias

## Syntax

```js
```js-nolint
keys()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/load/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ given in parameters to be loaded.

## Syntax

```js
```js-nolint
load(font)
load(font, text)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/fontfaceset/values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`values()`** method of the {{domxref("FontFaceSet")}} interface returns a

## Syntax

```js
```js-nolint
values()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`FontFaceSetLoadEvent()`** constructor creates a new

## Syntax

```js
```js-nolint
new FontFaceSetLoadEvent(type)
new FontFaceSetLoadEvent(type, options)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/formdata/append/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The difference between {{domxref("FormData.set", "set()")}} and `append()` is th
## Syntax

```js
```js-nolint
append(name, value)
append(name, value, filename)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/formdata/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`delete()`** method of the {{domxref("FormData")}} interface deletes a key
## Syntax

```js
```js-nolint
delete(name)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/formdata/entries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`FormData.entries()`** method returns an [iterator](/en-US/docs/Web/JavaSc
## Syntax

```js
```js-nolint
entries()
```

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

```js
```js-nolint
new FormData()
new FormData(form)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/formdata/get/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object. If you expect multiple values and want all of them, use the
## Syntax

```js
```js-nolint
get(name)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/formdata/getall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`getAll()`** method of the {{domxref("FormData")}} interface returns all t
## Syntax

```js
```js-nolint
getAll(name)
```

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

```js
```js-nolint
has(name)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/formdata/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`FormData.keys()`** method returns an [iterator](/en-US/docs/Web/JavaScrip
## Syntax

```js
```js-nolint
keys()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/formdata/set/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The difference between `set()` and {{domxref("FormData.append", "append()")}} is
## Syntax

```js
```js-nolint
set(name, value)
set(name, value, filename)
```
Expand Down
Loading

0 comments on commit 6cf95b2

Please sign in to comment.