Skip to content

Commit

Permalink
fix: breaking changes in testRunner from ESLint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan0x44 authored Apr 19, 2024
1 parent c0a6a20 commit ca04238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ function testRunner(
{ bail, log, err } = { bail: false, log: console.log, err: console.error }
) {
// See https://eslint.org/docs/latest/integrate/nodejs-api#ruletester
const tester = new RuleTester()
const tester = new RuleTester({ parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
}})

const oneOrMoreTestCaseIsSkipped = Object.values(rules).some(ruleModule =>
ruleModule.tests?.valid?.some(testCase => testCase[Exclusiveness]) ||
Expand Down

0 comments on commit ca04238

Please sign in to comment.