Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb753d49

Browse files
authored
infra: enable radix eslint rule (anuraghazra#3261)
1 parent1c07f41 commitb753d49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎.eslintrc.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"location":"start"
100100
}],
101101
"no-with":"warn",
102-
//"radix": "warn",
102+
"radix":"warn",
103103
// "vars-on-top": "error",
104104

105105
// Enforces the style of wrapped functions

‎src/common/utils.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ const parseArray = (str) => {
232232
*/
233233
constclampValue=(number,min,max)=>{
234234
//@ts-ignore
235-
if(Number.isNaN(parseInt(number))){
235+
if(Number.isNaN(parseInt(number,10))){
236236
returnmin;
237237
}
238238
returnMath.max(min,Math.min(number,max));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp