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 2f56e47 commit 0b0e462Copy full SHA for 0b0e462
lib/rules/sort-comp.js
@@ -133,9 +133,7 @@ module.exports = {
133
function getRefPropIndexes(method) {
134
const methodGroupIndexes = [];
135
136
- for (let groupIndex = 0; groupIndex < methodsOrder.length; groupIndex++) {
137
- const currentGroup = methodsOrder[groupIndex];
138
-
+ methodsOrder.forEach((currentGroup, groupIndex) => {
139
switch (currentGroup) {
140
case 'getters': {
141
if (method.getter) {
@@ -218,7 +216,7 @@ module.exports = {
218
216
break;
219
217
}
220
221
- }
+ });
222
223
// No matching pattern, return 'everything-else' index
224
if (methodGroupIndexes.length === 0) {
0 commit comments