We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 292d141 commit 937bafaCopy full SHA for 937bafa
lib/rules/no-deprecated-report-api.js
@@ -42,7 +42,7 @@ module.exports = {
42
node.arguments.length > 1
43
) {
44
context.report({
45
- node,
+ node: node.callee.property,
46
message: 'Use the new-style context.report() API.',
47
fix (fixer) {
48
const openingParen = sourceCode.getTokenBefore(node.arguments[0]);
0 commit comments