Skip to content

Commit

Permalink
Merge 338436a into db8d797
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Nov 22, 2022
2 parents db8d797 + 338436a commit b699755
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
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
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 b699755

Please sign in to comment.