Skip to content

Commit

Permalink
Tag syntax code blocks with js-nolint, part 1 (mdn#19177)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar authored and Himanshu Garg committed Sep 27, 2022
1 parent 9587018 commit dd95176
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/Java

### Syntax

```js
```js-nolint
await browser.scripting.updateContentScripts(
scripts // object
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on it.

## Syntax

```js
```js-nolint
strokeRect(x, y, width, height)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This proprietary method is specific to Internet Explorer browser.

### Syntax

```js
```js-nolint
msGetPropertyEnabled(name)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/eventtarget/addeventlistener/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ such as during the bubbling phase.

## Syntax

```js
```js-nolint
addEventListener(type, listener);
addEventListener(type, listener, options);
addEventListener(type, listener, useCapture);
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/window/opendialog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ to interact with the opener window until they close the modal dialog.

## Syntax

```js
```js-nolint
openDialog(url)
openDialog(url, name)
openDialog(url, name, features)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/window/scroll/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ particular place in the document.

## Syntax

```js
```js-nolint
scroll(x-coord, y-coord)
scroll(options)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`filter()`** method creates a [shallow copy](/en-US/docs/Glossary/Shallow_

## Syntax

```js
```js-nolints
// Arrow function
filter((element) => { /* … */ } )
filter((element, index) => { /* … */ } )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ every element in the calling array.

## Syntax

```js
```js-nolint
// Arrow function
map((element) => { /* … */ })
map((element, index) => { /* … */ })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`Date()`** constructor can create a {{jsxref("Date")}} instance or return

## Syntax

```js
```js-nolint
new Date()
new Date(value)
new Date(dateString)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ takes up to two arguments: callback functions for the success and failure cases
## Syntax

```js
```js-nolint
then(onFulfilled)
then(onFulfilled, onRejected)
Expand Down

0 comments on commit dd95176

Please sign in to comment.