Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 4b97b03

Browse files
committed
disallowArrayDestructuringReturn: adjust to 2.x
1 parent 3b1fc42 commit 4b97b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/disallow-array-destructuring-return.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports.prototype = {
4949
errors.add(
5050
'Array destructuring is not allowed for return, ' +
5151
'use object destructuring instead',
52-
node
52+
node.loc.start
5353
);
5454
};
5555

0 commit comments

Comments
 (0)