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 26eadf5 commit 2611207Copy full SHA for 2611207
lib/rules/jsx-indent.js
@@ -275,6 +275,18 @@ module.exports = {
275
}
276
const parentNodeIndent = getNodeIndent(node.parent);
277
checkNodesIndent(node, parentNodeIndent + indentSize);
278
+ },
279
+ ReturnStatement: function(node) {
280
+ if (!node.parent) {
281
+ return;
282
+ }
283
+
284
+ var openingIndent = getNodeIndent(node);
285
+ var closingIndent = getNodeIndent(node, true);
286
287
+ if (closingIndent !== openingIndent) {
288
+ report(node, openingIndent, closingIndent);
289
290
291
};
292
0 commit comments