Skip to content

Commit 937bafa

Browse files
Update: improve the error location for no-deprecated-report-api
1 parent 292d141 commit 937bafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-deprecated-report-api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
node.arguments.length > 1
4343
) {
4444
context.report({
45-
node,
45+
node: node.callee.property,
4646
message: 'Use the new-style context.report() API.',
4747
fix (fixer) {
4848
const openingParen = sourceCode.getTokenBefore(node.arguments[0]);

0 commit comments

Comments
 (0)