From cf31dab5d5982151e0cfcc32879e69a83180ec70 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Mon, 12 Aug 2019 04:16:49 -0700 Subject: [PATCH] Fix: no-restricted-syntax - correct the schema (#12051) --- lib/rules/no-restricted-syntax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rules/no-restricted-syntax.js b/lib/rules/no-restricted-syntax.js index 74eea147891..41aa9fa390a 100644 --- a/lib/rules/no-restricted-syntax.js +++ b/lib/rules/no-restricted-syntax.js @@ -21,7 +21,7 @@ module.exports = { schema: { type: "array", - items: [{ + items: { oneOf: [ { type: "string" @@ -36,7 +36,7 @@ module.exports = { additionalProperties: false } ] - }], + }, uniqueItems: true, minItems: 0 }