Skip to content

Commit

Permalink
Upgrade: Bump eslint-plugin-unicorn from 44.0.2 to 45.0.0
Browse files Browse the repository at this point in the history
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 44.0.2 to 45.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](sindresorhus/eslint-plugin-unicorn@v44.0.2...v45.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and bmish committed Nov 22, 2022
1 parent db8d797 commit 338436a
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 338436a

Please sign in to comment.