Skip to content

Commit

Permalink
Fix example in no-restricted-modules docs
Browse files Browse the repository at this point in the history
This rule doesn't allow passing an array of paths like this.
  • Loading branch information
zpao committed Mar 12, 2019
1 parent 2c7431d commit a97b426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-restricted-modules.md
Expand Up @@ -35,10 +35,10 @@ It can also take an object with lists of `paths` and gitignore-style `patterns`
You may also specify a custom message for any paths you want to restrict as follows:

```json
"no-restricted-modules": ["error", [{
"no-restricted-modules": ["error", {
"name": "foo-module",
"message": "Please use bar-module instead."
}]
}
]
```

Expand Down

0 comments on commit a97b426

Please sign in to comment.