There was an error while loading. Please reload this page.
1 parent 11ef4fc commit 9ada166Copy full SHA for 9ada166
src/rules/prefer-importing-jest-globals.ts
@@ -94,7 +94,7 @@ export default createRule({
94
return;
95
}
96
97
- const isModule = context.parserOptions.sourceType === 'module';
+ const isModule = context.parserOptions.sourceType === 'module' || context.languageOptions.sourceType === 'module';
98
99
context.report({
100
node: reportingNode,
0 commit comments