Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit a9538ce

Browse files
author
David
committed
fixed linting errors
1 parent 84077a9 commit a9538ce

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/validationRules.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ const rules = {
3030
return allValid;
3131
},
3232
isNumber: (values, value) => {
33-
switch(typeof value){
34-
case 'string': return rules.matchRegexp(values, value, /^-?\d+\.?\d*$/);
35-
case 'number': return true;
36-
default: return false;
33+
switch (typeof value) {
34+
case 'string':
35+
return rules.matchRegexp(values, value, /^-?\d+\.?\d*$/);
36+
case 'number':
37+
return true;
38+
default:
39+
return false;
3740
}
3841
}
3942
};

0 commit comments

Comments
 (0)