Skip to content

Commit 8cff358

Browse files
committed
fix(check-types, no-undefined-types): add missing schemas for options
1 parent 6baebd6 commit 8cff358

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/rules/checkTypes.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,20 @@ export default iterateJsdoc(({
220220
iterateAllJsdocs: true,
221221
meta: {
222222
fixable: 'code',
223+
schema: [
224+
{
225+
additionalProperties: false,
226+
properties: {
227+
noDefaults: {
228+
type: 'boolean'
229+
},
230+
unifyParentAndChildTypeChecks: {
231+
type: 'boolean'
232+
}
233+
},
234+
type: 'object'
235+
}
236+
],
223237
type: 'suggestion'
224238
}
225239
});

src/rules/noUndefinedTypes.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,23 @@ export default iterateJsdoc(({
131131
});
132132
}, {
133133
meta: {
134+
schema: [
135+
{
136+
additionalProperties: false,
137+
properties: {
138+
definedTypes: {
139+
items: {
140+
type: 'string'
141+
},
142+
type: 'array'
143+
},
144+
preferredTypesDefined: {
145+
type: 'boolean'
146+
}
147+
},
148+
type: 'object'
149+
}
150+
],
134151
type: 'suggestion'
135152
}
136153
});

0 commit comments

Comments
 (0)