From 7abe955976c7d6df9a43cfd6d2fcf588fc369067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Nowak?= Date: Tue, 8 Oct 2019 19:29:37 +0200 Subject: [PATCH] Update code formatting --- lib/rules/jsx-props-no-spreading.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/rules/jsx-props-no-spreading.js b/lib/rules/jsx-props-no-spreading.js index a737fe7f9e..d4cd50d054 100644 --- a/lib/rules/jsx-props-no-spreading.js +++ b/lib/rules/jsx-props-no-spreading.js @@ -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({