Skip to content

Commit 2e05706

Browse files
Replace rules.indent array with number
ESLint 7.12.0 indent rule configuration now only accepts a number value. The array provided returns a runtime error.
1 parent 2d5be7b commit 2e05706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/03-code-quality/02-coding-style/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ Here's an example of an `.eslintrc` file:
328328
},
329329
"rules": {
330330
"no-console": 0,
331-
"indent": ["warning", 2]
331+
"indent": 2
332332
}
333333
}
334334
```

0 commit comments

Comments
 (0)