Skip to content

Commit 5eba4fb

Browse files
author
Paweł Nowak
committed
Omit destructuring
1 parent 7abe955 commit 5eba4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-props-no-spreading.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = {
7777
const ignoreExplicitSpread = (configuration.explicitSpread || DEFAULTS.explicitSpread) === OPTIONS.ignore;
7878
const exceptions = configuration.exceptions || DEFAULTS.exceptions;
7979
const isException = (tag, allExceptions) => allExceptions.indexOf(tag) !== -1;
80-
const isProperty = ({type}) => type === 'Property';
80+
const isProperty = property => property.type === 'Property';
8181
return {
8282
JSXSpreadAttribute: function (node) {
8383
const tagName = node.parent.name.name;

0 commit comments

Comments
 (0)