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 d0e4879 commit af8bb41Copy full SHA for af8bb41
lib/rules/jsx-indent.js
@@ -159,6 +159,18 @@ module.exports = function(context) {
159
}
160
var peerElementIndent = getNodeIndent(node.parent.openingElement);
161
checkNodesIndent(node, peerElementIndent);
162
+ },
163
+ ReturnStatement: function(node) {
164
+ if (!node.parent) {
165
+ return;
166
+ }
167
+
168
+ var openingIndent = getNodeIndent(node);
169
+ var closingIndent = getNodeIndent(node, true);
170
171
+ if (closingIndent !== openingIndent) {
172
+ report(node, openingIndent, closingIndent);
173
174
175
};
176
0 commit comments