Skip to content

Commit 57f1676

Browse files
preco21ilyavolodin
authored andcommitted
Docs: Add missing brackets from code examples (#6700)
1 parent 124f066 commit 57f1676

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rules/spaced-comment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The following patterns are considered problems:
7676
```
7777

7878
```js
79-
/* eslint spaced-comment: ["error", "always", { "block": "balanced": true }] */
79+
/* eslint spaced-comment: ["error", "always", { "block": { "balanced": true } }] */
8080
/* This is a comment with whitespace at the beginning but not the end*/
8181
```
8282

@@ -121,7 +121,7 @@ The following patterns are considered problems:
121121
```
122122

123123
```js
124-
/*eslint spaced-comment: ["error", "never", { "block": "balanced": true }]*/
124+
/*eslint spaced-comment: ["error", "never", { "block": { "balanced": true } }]*/
125125
/*This is a comment with whitespace at the end */
126126
```
127127

@@ -234,12 +234,12 @@ The following patterns are considered problems:
234234
```
235235

236236
```js
237-
/*eslint spaced-comment: ["error", "always", { "block": "markers": ["!"], "balanced": true }]*/
237+
/*eslint spaced-comment: ["error", "always", { "block": { "markers": ["!"], "balanced": true } }]*/
238238
/*! This is a comment with a marker but without whitespace at the end*/
239239
```
240240

241241
```js
242-
/*eslint spaced-comment: ["error", "never", { "block": "markers": ["!"], "balanced": true }]*/
242+
/*eslint spaced-comment: ["error", "never", { "block": { "markers": ["!"], "balanced": true } }]*/
243243
/*!This is a comment with a marker but with whitespace at the end */
244244
```
245245

0 commit comments

Comments
 (0)