Skip to content

Commit 7abe955

Browse files
author
Paweł Nowak
committed
Update code formatting
1 parent 6eeb7c0 commit 7abe955

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

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

+12-6
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,25 @@ module.exports = {
8383
const tagName = node.parent.name.name;
8484
const isHTMLTag = tagName && tagName[0] !== tagName[0].toUpperCase();
8585
const isCustomTag = tagName && tagName[0] === tagName[0].toUpperCase();
86-
if (isHTMLTag &&
86+
if (
87+
isHTMLTag &&
8788
((ignoreHtmlTags && !isException(tagName, exceptions)) ||
88-
(!ignoreHtmlTags && isException(tagName, exceptions)))) {
89+
(!ignoreHtmlTags && isException(tagName, exceptions)))
90+
) {
8991
return;
9092
}
91-
if (isCustomTag &&
93+
if (
94+
isCustomTag &&
9295
((ignoreCustomTags && !isException(tagName, exceptions)) ||
93-
(!ignoreCustomTags && isException(tagName, exceptions)))) {
96+
(!ignoreCustomTags && isException(tagName, exceptions)))
97+
) {
9498
return;
9599
}
96-
if (ignoreExplicitSpread &&
100+
if (
101+
ignoreExplicitSpread &&
97102
node.argument.type === 'ObjectExpression' &&
98-
node.argument.properties.every(isProperty)) {
103+
node.argument.properties.every(isProperty)
104+
) {
99105
return;
100106
}
101107
context.report({

0 commit comments

Comments
 (0)