Skip to content

Commit

Permalink
chore: disable linting for named function expression
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 16, 2023
1 parent df03ab4 commit 2c456f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/usage.cjs
Expand Up @@ -2884,8 +2884,9 @@ describe('usage tests', () => {
const r = checkUsage(() =>
yargs(['-h'])
.help('h')
// eslint-disable-next-line
.default('f', function randomNumber() {
// eslint-disable-line
// eslint-disable-next-line
return Math.random() * 256;
})
.wrap(null)
Expand Down

0 comments on commit 2c456f3

Please sign in to comment.