From 956e883c21fd9f393bf6718d032a4e2e53b33f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Wed, 13 Mar 2019 08:21:56 -0700 Subject: [PATCH] Docs: Fix example in no-restricted-modules docs (#11454) This rule doesn't allow passing an array of paths like this. --- docs/rules/no-restricted-modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/no-restricted-modules.md b/docs/rules/no-restricted-modules.md index 78ce092ba37..7f9c926a1ef 100644 --- a/docs/rules/no-restricted-modules.md +++ b/docs/rules/no-restricted-modules.md @@ -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." - }] + } ] ```