Skip to content

Commit d92b040

Browse files
committed
wip
1 parent 18f9a89 commit d92b040

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

lib/rules/no-assert-equal.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ module.exports = {
240240
/* istanbul ignore next: deprecated code paths only followed by old eslint versions */
241241
const scope = sourceCode.getScope
242242
? sourceCode.getScope(node)
243-
: context.getScope();
243+
: // @ts-expect-error -- removed in ESLint 10, but needed for ESLint 8 compat
244+
context.getScope();
244245

245246
const tracker = new ReferenceTracker(scope);
246247
const traceMap = { equal: { [ReferenceTracker.CALL]: true } };

lib/rules/no-global-assertions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module.exports = {
4040
/* istanbul ignore next: deprecated code paths only followed by old eslint versions */
4141
const scope = sourceCode.getScope
4242
? sourceCode.getScope(node)
43-
: context.getScope();
43+
: // @ts-expect-error -- removed in ESLint 10, but needed for ESLint 8 compat
44+
context.getScope();
4445

4546
const tracker = new ReferenceTracker(scope);
4647
/** @type {Record<string, { [ReferenceTracker.CALL]: boolean }>} */

lib/rules/no-global-expect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ module.exports = {
3838
/* istanbul ignore next: deprecated code paths only followed by old eslint versions */
3939
const scope = sourceCode.getScope
4040
? sourceCode.getScope(node)
41-
: context.getScope();
41+
: // @ts-expect-error -- removed in ESLint 10, but needed for ESLint 8 compat
42+
context.getScope();
4243

4344
const tracker = new ReferenceTracker(scope);
4445
const traceMap = { expect: { [ReferenceTracker.CALL]: true } };

lib/rules/no-global-module-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ module.exports = {
3838
/* istanbul ignore next: deprecated code paths only followed by old eslint versions */
3939
const scope = sourceCode.getScope
4040
? sourceCode.getScope(node)
41-
: context.getScope();
41+
: // @ts-expect-error -- removed in ESLint 10, but needed for ESLint 8 compat
42+
context.getScope();
4243

4344
const tracker = new ReferenceTracker(scope);
4445
const traceMap = {

lib/rules/no-global-stop-start.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module.exports = {
4040
/* istanbul ignore next: deprecated code paths only followed by old eslint versions */
4141
const scope = sourceCode.getScope
4242
? sourceCode.getScope(node)
43-
: context.getScope();
43+
: // @ts-expect-error -- removed in ESLint 10, but needed for ESLint 8 compat
44+
context.getScope();
4445

4546
const tracker = new ReferenceTracker(scope);
4647
const traceMap = {

tests/lib/rules/no-compare-relation-boolean.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const rule = require("../../../lib/rules/no-compare-relation-boolean"),
1818

1919
/**
2020
* @param {{code: string, output:string}} testCase
21-
* @returns {{code: string, errors: {messageId: string, type: string}[]}}
21+
* @returns {{code: string, errors: {messageId: string}[]}}
2222
*/
2323
function addErrors(testCase) {
2424
return Object.assign(

tests/lib/rules/no-conditional-assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const rule = require("../../../lib/rules/no-conditional-assertions"),
1818

1919
/**
2020
* @param {string} code
21-
* @returns {{code: string, errors: {messageId: string, type: string}[]}}
21+
* @returns {{code: string, errors: {messageId: string}[]}}
2222
*/
2323
function wrapInInvalidTestObject(code) {
2424
return {

tests/lib/rules/no-hooks-from-ancestor-modules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const rule = require("../../../lib/rules/no-hooks-from-ancestor-modules"),
1717

1818
/**
1919
* @param {{ invokedMethodName: string, usedHooksIdentifierName: string }} params
20-
* @returns {{messageId: string, data: Record<string, string>, type: string}}
20+
* @returns {{messageId: string, data: Record<string, string>}}
2121
*/
2222
function createError({ invokedMethodName, usedHooksIdentifierName }) {
2323
return {

0 commit comments

Comments
 (0)