Skip to content

Commit

Permalink
Omit destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelnvk committed Oct 8, 2019
1 parent 7abe955 commit 5eba4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/jsx-props-no-spreading.js
Expand Up @@ -77,7 +77,7 @@ module.exports = {
const ignoreExplicitSpread = (configuration.explicitSpread || DEFAULTS.explicitSpread) === OPTIONS.ignore;
const exceptions = configuration.exceptions || DEFAULTS.exceptions;
const isException = (tag, allExceptions) => allExceptions.indexOf(tag) !== -1;
const isProperty = ({type}) => type === 'Property';
const isProperty = property => property.type === 'Property';
return {
JSXSpreadAttribute: function (node) {
const tagName = node.parent.name.name;
Expand Down

0 comments on commit 5eba4fb

Please sign in to comment.