-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwarnings.js
More file actions
44 lines (37 loc) · 782 Bytes
/
warnings.js
File metadata and controls
44 lines (37 loc) · 782 Bytes
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
'use strict';
module.exports = {
pass: {
message: 'message here.',
conditional: function () {
return true;
}
},
fail: {
message: 'hello i should fail',
when: function () {
return false;
}
},
regexp: {
message: 'hello, im a regexp based conditional matching semver ranges',
conditional: /v?\d+?\.\d+?\.\d+?/
},
number: {
message: 'hello, im a straight check number',
conditional: 1447
},
string: {
message: 'conditionally check a string',
conditional: 'yes'
},
regular: {
message: 'this message will be outputted'
},
array: {
message: [
'im also capable of processing array messages so we',
'can spread these messages over multiple lines',
'manually'
]
}
};