Skip to content

Commit

Permalink
Upgrade @ehmicky/eslint-config 20.0.3 -> 20.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 27, 2024
1 parent a28f72b commit 1cde24f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 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 @@ -64,7 +64,7 @@
},
"devDependencies": {
"@ehmicky/dev-tasks": "^3.0.19",
"@ehmicky/eslint-config": "^20.0.3",
"@ehmicky/eslint-config": "^20.0.4",
"test-each": "^7.0.0"
},
"engines": {
Expand Down
6 changes: 4 additions & 2 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ export const getOpts = (opts = {}) => {
}

const { fetch: fetchOpt, ...fetchNodeOpts } = opts
validateFetch(fetchOpt)
return { fetchOpt, fetchNodeOpts }
}

const validateFetch = (fetchOpt) => {
if (fetchOpt !== undefined && typeof fetchOpt !== 'boolean') {
throw new TypeError(`Option "fetch" must be a boolean: ${fetchOpt}`)
}

return { fetchOpt, fetchNodeOpts }
}

0 comments on commit 1cde24f

Please sign in to comment.