Skip to content

Commit

Permalink
Upgrade: Bump eslint-plugin-unicorn from 42.0.0 to 44.0.2 (#257)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] committed Nov 4, 2022
1 parent 70f1b71 commit beb4bf3
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 53 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
"unicorn/no-array-reduce": "off",
"unicorn/no-null": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off", // TODO: enable once we raise Node requirement to v16.0.0, v14.18.0.
"unicorn/prevent-abbreviations": "off"
},

Expand Down
14 changes: 8 additions & 6 deletions lib/rules/no-async-in-loops.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,21 @@ module.exports = {

function getLoopTypeText(loopType) {
switch (loopType) {
case "WhileStatement":
case "WhileStatement": {
return "while loop";
case "DoWhileStatement":
} case "DoWhileStatement": {
return "do-while loop";
case "ForStatement":
} case "ForStatement": {
return "for loop";
case "ForInStatement":
} case "ForInStatement": {
return "for-in loop";
case "ForOfStatement":
} case "ForOfStatement": {
return "for-of loop";
}
/* istanbul ignore next */
default:
default: {
throw new RangeError(`Invalid loop type: ${loopType}`);
}
}
}

Expand Down
7 changes: 4 additions & 3 deletions lib/rules/require-object-in-propequal.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ module.exports = {
case "TemplateLiteral":
case "JSXElement":
case "UpdateExpression":
case "UnaryExpression":
case "UnaryExpression": {
return false;

default:
}
default: {
return true;
}
}
}

Expand Down
89 changes: 46 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint-plugin-markdown": "^2.2.1",
"eslint-plugin-mocha": "^10.0.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-unicorn": "^44.0.2",
"markdownlint-cli": "^0.32.2",
"mocha": "^10.0.0",
"mocha-lcov-reporter": "^1.3.0",
Expand Down

0 comments on commit beb4bf3

Please sign in to comment.