mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-18 12:17:26 +00:00
infra: enable radix eslint rule (#3261)
This commit is contained in:
+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