Skip to content

Commit 60be03f

Browse files
authored
Merge pull request #244 from magento-commerce/imported-fredden-magento-coding-standard-358
[Imported] [eslint] Enforce consistent indentation
2 parents dccf910 + 83ddd30 commit 60be03f

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

eslint/.eslintrc-magento

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"eol-last": 2,
1919
"eqeqeq": [2, "smart"],
2020
"guard-for-in": 2,
21+
"indent": [2, 4],
2122
"keyword-spacing": [2, {}],
2223
"lines-around-comment": [
2324
2,

eslint/rules/utils.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ function getExpressionId(node) {
7575

7676
while (node) {
7777
switch (node.type) {
78-
case 'CallExpression':
79-
node = node.callee;
80-
break;
81-
82-
case 'MemberExpression':
83-
node = node.object;
84-
break;
85-
86-
case 'Identifier':
87-
return node;
88-
default:
89-
return null;
78+
case 'CallExpression':
79+
node = node.callee;
80+
break;
81+
82+
case 'MemberExpression':
83+
node = node.object;
84+
break;
85+
86+
case 'Identifier':
87+
return node;
88+
default:
89+
return null;
9090
}
9191
}
9292
}

0 commit comments

Comments
 (0)