Skip to content

Commit

Permalink
fix(prefer-importing-jest-globals): support new config
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimmer-atlassian committed Aug 6, 2024
1 parent 11ef4fc commit b0e52d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rules/prefer-importing-jest-globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export default createRule({
return;
}

const isModule = context.parserOptions.sourceType === 'module';
const isModule =
context.parserOptions.sourceType === 'module' ||
context.languageOptions?.sourceType === 'module';

context.report({
node: reportingNode,
Expand Down

0 comments on commit b0e52d8

Please sign in to comment.