forked from ealush/vest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
62 lines (60 loc) · 1.52 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { extendRules } from '../lib';
import endsWith from './endsWith';
import equals from './equals';
import greaterThan from './greaterThan';
import greaterThanOrEquals from './greaterThanOrEquals';
import inside from './inside';
import isArray from './isArray';
import isBetween from './isBetween';
import isEmpty from './isEmpty';
import isEven from './isEven';
import isNaN from './isNaN';
import isNegative from './isNegative';
import isNull from './isNull';
import isNumber from './isNumber';
import isNumeric from './isNumeric';
import isOdd from './isOdd';
import isString from './isString';
import isTruthy from './isTruthy';
import isUndefined from './isUndefined';
import lengthEquals from './lengthEquals';
import lessThan from './lessThan';
import lessThanOrEquals from './lessThanOrEquals';
import longerThan from './longerThan';
import longerThanOrEquals from './longerThanOrEquals';
import matches from './matches';
import numberEquals from './numberEquals';
import shorterThan from './shorterThan';
import shorterThanOrEquals from './shorterThanOrEquals';
import startsWith from './startsWith';
const rules = {
endsWith,
equals,
greaterThan,
greaterThanOrEquals,
inside,
isArray,
isBetween,
isEmpty,
isEven,
isNaN,
isNegative,
isNull,
isNumber,
isNumeric,
isOdd,
isString,
isTruthy,
isUndefined,
lengthEquals,
lessThan,
lessThanOrEquals,
longerThan,
longerThanOrEquals,
matches,
numberEquals,
shorterThan,
shorterThanOrEquals,
startsWith,
};
export default extendRules(rules);