Skip to content

Commit

Permalink
Docs: rules\id-length ###exceptions typos (fixes eslint#6397)
Browse files Browse the repository at this point in the history
Changed 2 typos:
exceptions accepts array,
was max property instead of exception property.
  • Loading branch information
GramParallelo committed Jul 4, 2016
1 parent ee7fcfa commit 05a2bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/id-length.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ var myObj = { a: 1 };

### exceptions

Examples of additional **correct** code for this rule with the `{ "exceptions": "x" }` option:
Examples of additional **correct** code for this rule with the `{ "exceptions": ["x"] }` option:

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

var x = 5;
Expand Down

0 comments on commit 05a2bfb

Please sign in to comment.