We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 953ad89 commit 71ac08eCopy full SHA for 71ac08e
lib/rules/jsx-indent.js
@@ -172,6 +172,18 @@ module.exports = {
172
}
173
var peerElementIndent = getNodeIndent(node.parent.openingElement);
174
checkNodesIndent(node, peerElementIndent);
175
+ },
176
+ ReturnStatement: function(node) {
177
+ if (!node.parent) {
178
+ return;
179
+ }
180
+
181
+ var openingIndent = getNodeIndent(node);
182
+ var closingIndent = getNodeIndent(node, true);
183
184
+ if (closingIndent !== openingIndent) {
185
+ report(node, openingIndent, closingIndent);
186
187
188
};
189
0 commit comments