Skip to content

Commit

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

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

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / typecheck

'context.languageOptions' is possibly 'undefined'.

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / test-ubuntu / Test on ubuntu-latest using Node.js LTS

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / test-ubuntu / Test on ubuntu-latest using Node.js LTS

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v16.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v16.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / test-macos / Test on macos-latest using Node.js LTS

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / test-macos / Test on macos-latest using Node.js LTS

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / test-windows / Test on windows-latest using Node.js LTS

Replace `··context.parserOptions.sourceType·===·'module'·||` with `␍⏎··········context.parserOptions.sourceType·===·'module'·||␍⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / test-windows / Test on windows-latest using Node.js LTS

Replace `··context.parserOptions.sourceType·===·'module'·||` with `␍⏎··········context.parserOptions.sourceType·===·'module'·||␍⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v22.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v22.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x, eslint v8, and ts-eslint v6

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v22.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v22.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v22.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v22.x, eslint v8, and ts-eslint v8

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

Check failure on line 97 in src/rules/prefer-importing-jest-globals.ts

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x, eslint v8, and ts-eslint v7

Replace `··context.parserOptions.sourceType·===·'module'·||` with `⏎··········context.parserOptions.sourceType·===·'module'·||⏎·········`

context.report({
node: reportingNode,
Expand Down

0 comments on commit 605bc98

Please sign in to comment.