Skip to content

Commit ab6fe3b

Browse files
committed
Replaced the nestedIndent variable to come before the loop iteration
1 parent a54e7cd commit ab6fe3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-indent-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ module.exports = {
172172
* @param {Number} indent needed indent
173173
*/
174174
function checkNodesIndent(nodes, indent) {
175+
let nestedIndent = indent;
175176
nodes.forEach((node) => {
176-
let nestedIndent = indent;
177177
const nodeIndent = getNodeIndent(node);
178178
if (
179179
line.isUsingOperator

0 commit comments

Comments
 (0)