|
1 | 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 e6719bb..b0e871d 100644 |
| 2 | +index caa646e..40f6c69 100644 |
3 | 3 | --- a/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js
|
4 | 4 | +++ b/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js
|
5 |
| -@@ -32,7 +32,7 @@ module.exports = { |
| 5 | +@@ -36,7 +36,7 @@ module.exports = { |
6 | 6 |
|
7 | 7 | const onlyProperty = test.properties.find(
|
8 |
| - property => |
| 8 | + (property) => |
9 | 9 | - property.key.type === 'Identifier' &&
|
10 | 10 | + property.key?.type === 'Identifier' &&
|
11 | 11 | property.key.name === 'only' &&
|
12 | 12 | property.value.type === 'Literal' &&
|
13 | 13 | property.value.value
|
14 | 14 | diff --git a/node_modules/eslint-plugin-eslint-plugin/lib/utils.js b/node_modules/eslint-plugin-eslint-plugin/lib/utils.js
|
15 |
| -index 8aca920..707fe53 100644 |
| 15 | +index 646b472..1e58ed7 100644 |
16 | 16 | --- a/node_modules/eslint-plugin-eslint-plugin/lib/utils.js
|
17 | 17 | +++ b/node_modules/eslint-plugin-eslint-plugin/lib/utils.js
|
18 |
| -@@ -24,10 +24,10 @@ function isNormalFunctionExpression (node) { |
19 |
| - */ |
20 |
| - function isRuleTesterConstruction (node) { |
21 |
| - return node.type === 'NewExpression' && ( |
22 |
| -- (node.callee.type === 'Identifier' && node.callee.name === 'RuleTester') || |
23 |
| -+ (node.callee.type === 'Identifier' && node.callee.name === 'GraphQLRuleTester') || |
24 |
| - (node.callee.type === 'MemberExpression' && |
25 |
| - node.callee.property.type === 'Identifier' && |
26 |
| -- node.callee.property.name === 'RuleTester') |
27 |
| -+ node.callee.property.name === 'GraphQLRuleTester') |
| 18 | +@@ -25,10 +25,10 @@ function isNormalFunctionExpression(node) { |
| 19 | + function isRuleTesterConstruction(node) { |
| 20 | + return ( |
| 21 | + node.type === 'NewExpression' && |
| 22 | +- ((node.callee.type === 'Identifier' && node.callee.name === 'RuleTester') || |
| 23 | ++ ((node.callee.type === 'Identifier' && node.callee.name === 'GraphQLRuleTester') || |
| 24 | + (node.callee.type === 'MemberExpression' && |
| 25 | + node.callee.property.type === 'Identifier' && |
| 26 | +- node.callee.property.name === 'RuleTester')) |
| 27 | ++ node.callee.property.name === 'GraphQLRuleTester')) |
28 | 28 | );
|
29 | 29 | }
|
30 | 30 |
|
31 |
| -@@ -343,7 +343,7 @@ module.exports = { |
32 |
| - variableIdentifiers.has(statement.expression.callee.object) |
33 |
| - ) && |
| 31 | +@@ -410,7 +410,7 @@ module.exports = { |
| 32 | + (isRuleTesterConstruction(statement.expression.callee.object) || |
| 33 | + variableIdentifiers.has(statement.expression.callee.object)) && |
34 | 34 | statement.expression.callee.property.type === 'Identifier' &&
|
35 | 35 | - statement.expression.callee.property.name === 'run'
|
36 | 36 | + statement.expression.callee.property.name === 'runGraphQLTests'
|
|
0 commit comments