Skip to content

Commit

Permalink
fix: improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jul 9, 2022
1 parent c96ef3d commit 847ee3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rule-tester/rule-tester.js
Expand Up @@ -615,7 +615,7 @@ class RuleTester {
item.options.length > 0 &&
typeof rule === "object" &&
(
!rule.meta || (rule.meta && typeof rule.meta.schema === "undefined")
!rule.meta || (rule.meta && typeof (rule.meta.schema === "undefined" || rule.meta.schema === null))
)
) {
emitMissingSchemaWarning(ruleName);
Expand Down

0 comments on commit 847ee3b

Please sign in to comment.