From 9ada166af657b9e2b8920cbe168b5561a3378fae Mon Sep 17 00:00:00 2001 From: Erin Zimmer Date: Wed, 7 Aug 2024 08:14:29 +1000 Subject: [PATCH] fix(prefer-importing-jest-globals): support new config --- src/rules/prefer-importing-jest-globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/prefer-importing-jest-globals.ts b/src/rules/prefer-importing-jest-globals.ts index 9cce2d213..cbdb05f39 100644 --- a/src/rules/prefer-importing-jest-globals.ts +++ b/src/rules/prefer-importing-jest-globals.ts @@ -94,7 +94,7 @@ export default createRule({ return; } - const isModule = context.parserOptions.sourceType === 'module'; + const isModule = context.parserOptions.sourceType === 'module' || context.languageOptions.sourceType === 'module'; context.report({ node: reportingNode,