Skip to content

Commit 605bc98

Browse files
support new config structure
1 parent 11ef4fc commit 605bc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/prefer-importing-jest-globals.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default createRule({
9494
return;
9595
}
9696

97-
const isModule = context.parserOptions.sourceType === 'module';
97+
const isModule = context.parserOptions.sourceType === 'module' || context.languageOptions.sourceType === 'module';
9898

9999
context.report({
100100
node: reportingNode,

0 commit comments

Comments
 (0)