Skip to content

Commit

Permalink
Docs: Fix rules\id-length exceptions typos (fixes #6397) (#6593)
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 authored and nzakas committed Jul 5, 2016
1 parent a2cfa1b commit e9a2ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/id-length.md
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 e9a2ed9

Please sign in to comment.