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

Commit 1933651

Browse files
author
David
committed
fixed linting rules
1 parent a9538ce commit 1933651

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
'dot-location': [ERROR, 'property'],
2828
'dot-notation': ERROR,
2929
'eqeqeq': [ERROR, 'allow-null'],
30-
'indent': [ERROR, 4],
30+
'indent': [ERROR, 4, {"SwitchCase": 1}],
3131
'jsx-quotes': [ERROR, 'prefer-double'],
3232
'keyword-spacing': [ERROR, {after: true, before: true}],
3333
'no-bitwise': OFF,

src/validationRules.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ const rules = {
3131
},
3232
isNumber: (values, value) => {
3333
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;
34+
case 'string':
35+
return rules.matchRegexp(values, value, /^-?\d+\.?\d*$/);
36+
case 'number':
37+
return true;
38+
default:
39+
return false;
4040
}
4141
}
4242
};

0 commit comments

Comments
 (0)