Skip to content

Commit

Permalink
Docs: fix wrong config in max-len example. (#9309)
Browse files Browse the repository at this point in the history
* Docs: fix wrong config in max-len example.

* Update max-len.md
  • Loading branch information
aladdin-add authored and btmills committed Sep 15, 2017
1 parent 9d1df92 commit 4431d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/max-len.md
Expand Up @@ -144,10 +144,10 @@ var longRegExpLiteral = /this is a really really really really really long regul

### ignorePattern

Examples of **correct** code for this rule with the `{ "ignorePattern": true }` option:
Examples of **correct** code for this rule with the `ignorePattern` option:

```js
/*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
/*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\(" }]*/

var dep = require('really/really/really/really/really/really/really/really/long/module');
```
Expand Down

0 comments on commit 4431d68

Please sign in to comment.