Skip to content

Commit

Permalink
Docs: Fix example in no-restricted-modules docs (#11454)
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 authored and platinumazure committed Mar 13, 2019
1 parent 2c7431d commit 956e883
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 956e883

Please sign in to comment.