Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzherdev committed Sep 8, 2018
1 parent c1b6da0 commit 8215be3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rules/jsx-child-element-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ module.exports = {
]
},
create: function (context) {
const TEXT_FOLLOWING_ELEMENT_PATTERN = /^\s*\n\s*\S/;
const TEXT_PRECEDING_ELEMENT_PATTERN = /\S\s*\n\s*$/;

const elementName = node => (
node.openingElement &&
node.openingElement.name &&
Expand Down Expand Up @@ -98,9 +101,6 @@ module.exports = {
});
};

const TEXT_FOLLOWING_ELEMENT_PATTERN = /^\s*\n\s*\S/;
const TEXT_PRECEDING_ELEMENT_PATTERN = /\S\s*\n\s*$/;

return {
JSXElement: handleJSX,
JSXFragment: handleJSX
Expand Down

0 comments on commit 8215be3

Please sign in to comment.