From 135a356e9aecf7b019a5b5c5bf600e8453576c07 Mon Sep 17 00:00:00 2001 From: fnx Date: Wed, 11 Aug 2021 11:27:20 +0200 Subject: [PATCH] fix(`tag-lines`): schema fix for tags (#775) The current schema of `tag-lines` for the property tags is incorrect as `patternProperties` is inside `properties` instead of only `patternProperties`. As such only `tags.patternProperties` is checked and not as wanted `tags.*`. --- src/rules/tagLines.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/rules/tagLines.js b/src/rules/tagLines.js index 886dca228..b252221c7 100644 --- a/src/rules/tagLines.js +++ b/src/rules/tagLines.js @@ -129,18 +129,16 @@ export default iterateJsdoc(({ type: 'boolean', }, tags: { - properties: { - patternProperties: { - '.*': { - additionalProperties: false, - properties: { - count: { - type: 'integer', - }, - lines: { - enum: ['always', 'never', 'any'], - type: 'string', - }, + patternProperties: { + '.*': { + additionalProperties: false, + properties: { + count: { + type: 'integer', + }, + lines: { + enum: ['always', 'never', 'any'], + type: 'string', }, }, },