@@ -11,9 +11,140 @@ exports[`validateConfig should throw and should print validation errors for inva
11
11
12
12
Should be a string, a function, or an array of strings and functions.
13
13
14
- Configured value is: 'foo'
14
+ Configured value is: false
15
15
16
16
Please refer to https://github.com/okonet/lint-staged#configuration for more information..."
17
17
` ;
18
18
19
19
exports [` validateConfig should throw and should print validation errors for invalid config 1 1` ] = ` "Configuration should be an object!"` ;
20
+
21
+ exports [` validateConfig should throw when detecting deprecated advanced configuration 1` ] = `
22
+ "● Validation Error:
23
+
24
+ Invalid value for 'chunkSize'.
25
+
26
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
27
+
28
+ Configured value is: 10
29
+
30
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
31
+ ● Validation Error:
32
+
33
+ Invalid value for 'chunkSize'.
34
+
35
+ Should be a string, a function, or an array of strings and functions.
36
+
37
+ Configured value is: 10
38
+
39
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
40
+ ● Validation Error:
41
+
42
+ Invalid value for 'concurrent'.
43
+
44
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
45
+
46
+ Configured value is: false
47
+
48
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
49
+ ● Validation Error:
50
+
51
+ Invalid value for 'concurrent'.
52
+
53
+ Should be a string, a function, or an array of strings and functions.
54
+
55
+ Configured value is: false
56
+
57
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
58
+ ● Validation Error:
59
+
60
+ Invalid value for 'globOptions'.
61
+
62
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
63
+
64
+ Configured value is: { matchBase : false }
65
+
66
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
67
+ ● Validation Error:
68
+
69
+ Invalid value for 'globOptions'.
70
+
71
+ Should be a string, a function, or an array of strings and functions.
72
+
73
+ Configured value is: { matchBase : false }
74
+
75
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
76
+ ● Validation Error:
77
+
78
+ Invalid value for 'ignore'.
79
+
80
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
81
+
82
+ Configured value is: ['test.js']
83
+
84
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
85
+ ● Validation Error:
86
+
87
+ Invalid value for 'linters'.
88
+
89
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
90
+
91
+ Configured value is: { ' *.js' : [' eslint' ]}
92
+
93
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
94
+ ● Validation Error:
95
+
96
+ Invalid value for 'linters'.
97
+
98
+ Should be a string, a function, or an array of strings and functions.
99
+
100
+ Configured value is: { ' *.js' : [' eslint' ]}
101
+
102
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
103
+ ● Validation Error:
104
+
105
+ Invalid value for 'relative'.
106
+
107
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
108
+
109
+ Configured value is: true
110
+
111
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
112
+ ● Validation Error:
113
+
114
+ Invalid value for 'relative'.
115
+
116
+ Should be a string, a function, or an array of strings and functions.
117
+
118
+ Configured value is: true
119
+
120
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
121
+ ● Validation Error:
122
+
123
+ Invalid value for 'renderer'.
124
+
125
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
126
+
127
+ Configured value is: 'silent'
128
+
129
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
130
+ ● Validation Error:
131
+
132
+ Invalid value for 'subTaskConcurrency'.
133
+
134
+ Advanced configuration has been deprecated. For more info, please visit: https://github.com/okonet/lint-staged.
135
+
136
+ Configured value is: 10
137
+
138
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information...
139
+ ● Validation Error:
140
+
141
+ Invalid value for 'subTaskConcurrency'.
142
+
143
+ Should be a string, a function, or an array of strings and functions.
144
+
145
+ Configured value is: 10
146
+
147
+ Please refer to https://github.com/okonet/lint-staged#configuration for more information..."
148
+ ` ;
149
+
150
+ exports [` validateConfig should throw when detecting deprecated advanced configuration 2` ] = ` ""` ;
0 commit comments