Skip to content

Commit

Permalink
FlatRuleTester: Allow new-style rule definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
xkr47 committed Aug 24, 2023
1 parent 0185285 commit af58056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rule-tester/flat-rule-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const { ConfigArraySymbol } = require("@humanwhocodes/config-array");

/** @typedef {import("../shared/types").Parser} Parser */
/** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */
/** @typedef {import("../shared/types").Rule} Parser */


/**
Expand Down Expand Up @@ -446,7 +447,7 @@ class FlatRuleTester {
/**
* Adds a new rule test to execute.
* @param {string} ruleName The name of the rule to run.
* @param {Function} rule The rule to test.
* @param {Function | Rule} rule The rule to test.
* @param {{
* valid: (ValidTestCase | string)[],
* invalid: InvalidTestCase[]
Expand Down

0 comments on commit af58056

Please sign in to comment.