Skip to content

Commit

Permalink
lint fixish
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jun 17, 2024
1 parent 2c849e0 commit bf3a595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"no-underscore-dangle":0,
"no-unused-vars":0, // for now...
"no-console": 0,
"consistent-return": 0,
"jsx-a11y/label-has-associated-control": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion source/hooks/useFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as d3 from 'd3';
function isNumeric(str) {
if (typeof str !== 'string') return false; // we only process strings!
return (
!isNaN(str)
!Number.isNaN(str)
// use type coercion to parse the _entirety_ of the string
// (`parseFloat` alone does not do this)...
&& !Number.isNaN(parseFloat(str))
Expand Down

0 comments on commit bf3a595

Please sign in to comment.