Skip to content

Commit

Permalink
fix(tag-lines): schema fix for tags (#775)
Browse files Browse the repository at this point in the history
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.*`.
  • Loading branch information
DMartens committed Aug 11, 2021
1 parent 0ace59d commit 135a356
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/rules/tagLines.js
Expand Up @@ -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',
},
},
},
Expand Down

0 comments on commit 135a356

Please sign in to comment.