|
| 1 | +diff --git a/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js b/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js |
| 2 | +index caa646e..29b5177 100644 |
| 3 | +--- a/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js |
| 4 | ++++ b/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js |
| 5 | +@@ -36,7 +36,7 @@ module.exports = { |
| 6 | + |
| 7 | + const onlyProperty = test.properties.find( |
| 8 | + (property) => |
| 9 | +- property.key.type === 'Identifier' && |
| 10 | ++ property.key?.type === 'Identifier' && |
| 11 | + property.key.name === 'only' && |
| 12 | + property.value.type === 'Literal' && |
| 13 | + property.value.value |
| 14 | +@@ -82,7 +82,7 @@ module.exports = { |
| 15 | + test.type === 'CallExpression' && |
| 16 | + test.callee.type === 'MemberExpression' && |
| 17 | + test.callee.object.type === 'Identifier' && |
| 18 | +- test.callee.object.name === 'RuleTester' && |
| 19 | ++ test.callee.object.name === 'GraphQLRuleTester' && |
| 20 | + test.callee.property.type === 'Identifier' && |
| 21 | + test.callee.property.name === 'only' |
| 22 | + ) { |
| 23 | +diff --git a/node_modules/eslint-plugin-eslint-plugin/lib/rules/prefer-output-null.js b/node_modules/eslint-plugin-eslint-plugin/lib/rules/prefer-output-null.js |
| 24 | +index 0716d91..2bee9f4 100644 |
| 25 | +--- a/node_modules/eslint-plugin-eslint-plugin/lib/rules/prefer-output-null.js |
| 26 | ++++ b/node_modules/eslint-plugin-eslint-plugin/lib/rules/prefer-output-null.js |
| 27 | +@@ -48,7 +48,7 @@ module.exports = { |
| 28 | + */ |
| 29 | + function getTestInfo(key) { |
| 30 | + if (test.type === 'ObjectExpression') { |
| 31 | +- return test.properties.find((item) => item.key.name === key); |
| 32 | ++ return test.properties.find((item) => item.key?.name === key); |
| 33 | + } |
| 34 | + return null; |
| 35 | + } |
| 36 | +diff --git a/node_modules/eslint-plugin-eslint-plugin/lib/utils.js b/node_modules/eslint-plugin-eslint-plugin/lib/utils.js |
| 37 | +index 3129903..c7e1d88 100644 |
| 38 | +--- a/node_modules/eslint-plugin-eslint-plugin/lib/utils.js |
| 39 | ++++ b/node_modules/eslint-plugin-eslint-plugin/lib/utils.js |
| 40 | +@@ -25,10 +25,10 @@ function isNormalFunctionExpression(node) { |
| 41 | + function isRuleTesterConstruction(node) { |
| 42 | + return ( |
| 43 | + node.type === 'NewExpression' && |
| 44 | +- ((node.callee.type === 'Identifier' && node.callee.name === 'RuleTester') || |
| 45 | ++ ((node.callee.type === 'Identifier' && node.callee.name === 'GraphQLRuleTester') || |
| 46 | + (node.callee.type === 'MemberExpression' && |
| 47 | + node.callee.property.type === 'Identifier' && |
| 48 | +- node.callee.property.name === 'RuleTester')) |
| 49 | ++ node.callee.property.name === 'GraphQLRuleTester')) |
| 50 | + ); |
| 51 | + } |
| 52 | + |
| 53 | +@@ -534,7 +534,7 @@ module.exports = { |
| 54 | + (isRuleTesterConstruction(expression.callee.object) || |
| 55 | + variableIdentifiers.has(expression.callee.object)) && |
| 56 | + expression.callee.property.type === 'Identifier' && |
| 57 | +- expression.callee.property.name === 'run' |
| 58 | ++ expression.callee.property.name === 'runGraphQLTests' |
| 59 | + ) { |
| 60 | + runCalls.push(expression); |
| 61 | + } |
0 commit comments