Skip to content

Commit 3f624d6

Browse files
committed
[eslint] enable and manually fix no-continue
1 parent b8a6c11 commit 3f624d6

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

.eslintrc

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"no-plusplus": 1,
3131
"no-param-reassign": 1,
3232
"no-mixed-operators": 1,
33-
"no-continue": 1,
3433
"global-require": 1,
3534
"no-restricted-syntax": 1,
3635
"valid-jsdoc": 1,

lib/rules/sort-comp.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,15 @@ module.exports = {
278278
*/
279279
function dedupeErrors() {
280280
for (const i in errors) {
281-
if (!has(errors, i)) {
282-
continue;
283-
}
284-
const index = errors[i].closest.ref.index;
285-
if (!errors[index]) {
286-
continue;
287-
}
288-
if (errors[i].score > errors[index].score) {
289-
delete errors[index];
290-
} else {
291-
delete errors[i];
281+
if (has(errors, i)) {
282+
const index = errors[i].closest.ref.index;
283+
if (errors[index]) {
284+
if (errors[i].score > errors[index].score) {
285+
delete errors[index];
286+
} else {
287+
delete errors[i];
288+
}
289+
}
292290
}
293291
}
294292
}

lib/util/Components.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ function componentRule(rule, context) {
624624
// Traverse the node properties to the component declaration
625625
for (i = 0, j = componentPath.length; i < j; i++) {
626626
if (!componentNode.properties) {
627-
continue;
627+
continue; // eslint-disable-line no-continue
628628
}
629629
for (k = 0, l = componentNode.properties.length; k < l; k++) {
630630
if (componentNode.properties[k].key && componentNode.properties[k].key.name === componentPath[i]) {

0 commit comments

Comments
 (0)