Skip to content

Commit beb4bf3

Browse files
authoredNov 4, 2022
Upgrade: Bump eslint-plugin-unicorn from 42.0.0 to 44.0.2 (#257)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 70f1b71 commit beb4bf3

5 files changed

+60
-53
lines changed
 

‎.eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
"unicorn/no-array-reduce": "off",
183183
"unicorn/no-null": "off",
184184
"unicorn/prefer-module": "off",
185+
"unicorn/prefer-node-protocol": "off", // TODO: enable once we raise Node requirement to v16.0.0, v14.18.0.
185186
"unicorn/prevent-abbreviations": "off"
186187
},
187188

‎lib/rules/no-async-in-loops.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,21 @@ module.exports = {
4242

4343
function getLoopTypeText(loopType) {
4444
switch (loopType) {
45-
case "WhileStatement":
45+
case "WhileStatement": {
4646
return "while loop";
47-
case "DoWhileStatement":
47+
} case "DoWhileStatement": {
4848
return "do-while loop";
49-
case "ForStatement":
49+
} case "ForStatement": {
5050
return "for loop";
51-
case "ForInStatement":
51+
} case "ForInStatement": {
5252
return "for-in loop";
53-
case "ForOfStatement":
53+
} case "ForOfStatement": {
5454
return "for-of loop";
55+
}
5556
/* istanbul ignore next */
56-
default:
57+
default: {
5758
throw new RangeError(`Invalid loop type: ${loopType}`);
59+
}
5860
}
5961
}
6062

‎lib/rules/require-object-in-propequal.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ module.exports = {
6666
case "TemplateLiteral":
6767
case "JSXElement":
6868
case "UpdateExpression":
69-
case "UnaryExpression":
69+
case "UnaryExpression": {
7070
return false;
71-
72-
default:
71+
}
72+
default: {
7373
return true;
74+
}
7475
}
7576
}
7677

‎package-lock.json

+46-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"eslint-plugin-markdown": "^2.2.1",
3636
"eslint-plugin-mocha": "^10.0.5",
3737
"eslint-plugin-node": "^11.1.0",
38-
"eslint-plugin-unicorn": "^42.0.0",
38+
"eslint-plugin-unicorn": "^44.0.2",
3939
"markdownlint-cli": "^0.32.2",
4040
"mocha": "^10.0.0",
4141
"mocha-lcov-reporter": "^1.3.0",

0 commit comments

Comments
 (0)
Please sign in to comment.