Skip to content

Commit

Permalink
Docs: fix wrong config in id-length example. (#9303)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored and not-an-aardvark committed Sep 14, 2017
1 parent 2731f94 commit fcfe91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/id-length.md
Expand Up @@ -192,7 +192,7 @@ data["y"] = 3; // excused because of calculated property access
Examples of **incorrect** code for this rule with the `{ "max": 10 }` option:

```js
/*eslint id-length: ["error", { "max": "10" }]*/
/*eslint id-length: ["error", { "max": 10 }]*/
/*eslint-env es6*/

var reallyLongVarName = 5;
Expand All @@ -210,7 +210,7 @@ try {
Examples of **correct** code for this rule with the `{ "max": 10 }` option:

```js
/*eslint id-length: ["error", { "max": "10" }]*/
/*eslint id-length: ["error", { "max": 10 }]*/
/*eslint-env es6*/

var varName = 5;
Expand Down

0 comments on commit fcfe91a

Please sign in to comment.