Skip to content

Commit

Permalink
Upgrade: Bump eslint-plugin-unicorn from 44.0.2 to 45.0.0 (#271)
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 22, 2022
1 parent db8d797 commit 163bfdf
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 23 deletions.
6 changes: 3 additions & 3 deletions lib/rules/no-arrow-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ module.exports = {

const beforeArrowComment = extractSourceTextByRange(beforeArrowToken.range[1], arrow.range[0]);
const afterArrowComment = extractSourceTextByRange(arrow.range[1], fn.body.range[0]);
const paramsFullText = firstToken.type !== "Punctuator" ?
`(${params}${beforeArrowComment})${afterArrowComment}` :
`${params}${beforeArrowComment}${afterArrowComment}`;
const paramsFullText = firstToken.type === "Punctuator" ?
`${params}${beforeArrowComment}${afterArrowComment}` :
`(${params}${beforeArrowComment})${afterArrowComment}`;

return `${functionKeyword}${paramsFullText} `;
}
Expand Down
103 changes: 84 additions & 19 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": "^3.0.0",
"eslint-plugin-mocha": "^10.0.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-unicorn": "^44.0.2",
"eslint-plugin-unicorn": "^45.0.0",
"markdownlint-cli": "^0.32.2",
"mocha": "^10.0.0",
"mocha-lcov-reporter": "^1.3.0",
Expand Down

0 comments on commit 163bfdf

Please sign in to comment.