mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 19:55:16 +00:00
infra: enable radix eslint rule (#3261)
This commit is contained in:
parent
1c07f4142c
commit
b753d49158
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@
|
|||
"location": "start"
|
||||
}],
|
||||
"no-with": "warn",
|
||||
// "radix": "warn",
|
||||
"radix": "warn",
|
||||
// "vars-on-top": "error",
|
||||
|
||||
// Enforces the style of wrapped functions
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue