mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-14 08:58:28 +00:00
infra: enable radix eslint rule (#3261)
This commit is contained in:
committed by
GitHub
parent
1c07f4142c
commit
b753d49158
+1
-1
@@ -99,7 +99,7 @@
|
||||
"location": "start"
|
||||
}],
|
||||
"no-with": "warn",
|
||||
// "radix": "warn",
|
||||
"radix": "warn",
|
||||
// "vars-on-top": "error",
|
||||
|
||||
// Enforces the style of wrapped functions
|
||||
|
||||
+1
-1
@@ -232,7 +232,7 @@ const parseArray = (str) => {
|
||||
*/
|
||||
const clampValue = (number, min, max) => {
|
||||
// @ts-ignore
|
||||
if (Number.isNaN(parseInt(number))) {
|
||||
if (Number.isNaN(parseInt(number, 10))) {
|
||||
return min;
|
||||
}
|
||||
return Math.max(min, Math.min(number, max));
|
||||
|
||||
Reference in New Issue
Block a user