Skip to content

Commit

Permalink
test: default to assuming source is a script rather than a module
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Sep 15, 2024
1 parent 52d3c83 commit d145ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/rule-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function withoutAutofixOutput(test) {
}

export class FlatCompatRuleTester {
constructor(testerConfig) {
constructor(testerConfig = { parserOptions: { sourceType: 'script' } }) {
this._tester = new RuleTester(FlatCompatRuleTester._flatCompat(testerConfig));
}

Expand Down

0 comments on commit d145ac8

Please sign in to comment.