Skip to content

Commit

Permalink
fix: Update getRuleOptionsSchema type jsdoc to properly reflect types
Browse files Browse the repository at this point in the history
  • Loading branch information
matwilko committed May 23, 2023
1 parent acf1a07 commit 449ffba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/config/flat-config-helpers.js
Expand Up @@ -67,8 +67,8 @@ function getRuleFromConfig(ruleId, config) {

/**
* Gets a complete options schema for a rule.
* @param {{create: Function, schema: (Array|null)}} rule A new-style rule object
* @returns {Object} JSON Schema for the rule's options.
* @param {{schema?: (object[] | object | null), meta?: { schema?: (object[] | object | null)}}} rule A rule object
* @returns {object | null} JSON Schema for the rule's options.
*/
function getRuleOptionsSchema(rule) {

Expand Down

0 comments on commit 449ffba

Please sign in to comment.