Skip to content

Commit

Permalink
Update code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelnvk committed Oct 8, 2019
1 parent 6eeb7c0 commit 7abe955
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lib/rules/jsx-props-no-spreading.js
Expand Up @@ -83,19 +83,25 @@ module.exports = {
const tagName = node.parent.name.name;
const isHTMLTag = tagName && tagName[0] !== tagName[0].toUpperCase();
const isCustomTag = tagName && tagName[0] === tagName[0].toUpperCase();
if (isHTMLTag &&
if (
isHTMLTag &&
((ignoreHtmlTags && !isException(tagName, exceptions)) ||
(!ignoreHtmlTags && isException(tagName, exceptions)))) {
(!ignoreHtmlTags && isException(tagName, exceptions)))
) {
return;
}
if (isCustomTag &&
if (
isCustomTag &&
((ignoreCustomTags && !isException(tagName, exceptions)) ||
(!ignoreCustomTags && isException(tagName, exceptions)))) {
(!ignoreCustomTags && isException(tagName, exceptions)))
) {
return;
}
if (ignoreExplicitSpread &&
if (
ignoreExplicitSpread &&
node.argument.type === 'ObjectExpression' &&
node.argument.properties.every(isProperty)) {
node.argument.properties.every(isProperty)
) {
return;
}
context.report({
Expand Down

0 comments on commit 7abe955

Please sign in to comment.