@@ -64,10 +64,153 @@ exports[`validateConfig should throw when detecting deprecated advanced configur
6464
6565exports [` validateConfig should throw when detecting deprecated advanced configuration 2` ] = `
6666"
67- ERROR Could not parse lint-staged config.
67+ ERROR ✖ Validation Error:
68+
69+ Invalid value for 'chunkSize': 10
70+
71+ Advanced configuration has been deprecated.
72+
73+ ✖ Validation Error:
74+
75+ Invalid value for 'concurrent': false
76+
77+ Advanced configuration has been deprecated.
78+
79+ ✖ Validation Error:
80+
81+ Invalid value for 'globOptions': { matchBase : false }
82+
83+ Advanced configuration has been deprecated.
84+
85+ ✖ Validation Error:
86+
87+ Invalid value for 'ignore': [ 'test.js' ]
88+
89+ Advanced configuration has been deprecated.
90+
91+ ✖ Validation Error:
92+
93+ Invalid value for 'linters': { ' *.js' : [ ' eslint' ] }
94+
95+ Advanced configuration has been deprecated.
96+
97+ ✖ Validation Error:
98+
99+ Invalid value for 'relative': true
100+
101+ Advanced configuration has been deprecated.
102+
103+ ✖ Validation Error:
104+
105+ Invalid value for 'renderer': 'silent'
106+
107+ Advanced configuration has been deprecated.
108+
109+ ✖ Validation Error:
110+
111+ Invalid value for 'subTaskConcurrency': 10
112+
113+ Advanced configuration has been deprecated. Failed to parse config from file ".lintstagedrc.json".
114+
115+ ✖ Validation Error:
116+
117+ Invalid value for 'chunkSize': 10
118+
119+ Advanced configuration has been deprecated.
120+
121+ ✖ Validation Error:
122+
123+ Invalid value for 'concurrent': false
124+
125+ Advanced configuration has been deprecated.
126+
127+ ✖ Validation Error:
128+
129+ Invalid value for 'globOptions': { matchBase : false }
130+
131+ Advanced configuration has been deprecated.
132+
133+ ✖ Validation Error:
134+
135+ Invalid value for 'ignore': [ 'test.js' ]
136+
137+ Advanced configuration has been deprecated.
68138
69139✖ Validation Error:
70140
141+ Invalid value for 'linters': { ' *.js' : [ ' eslint' ] }
142+
143+ Advanced configuration has been deprecated.
144+
145+ ✖ Validation Error:
146+
147+ Invalid value for 'relative': true
148+
149+ Advanced configuration has been deprecated.
150+
151+ ✖ Validation Error:
152+
153+ Invalid value for 'renderer': 'silent'
154+
155+ Advanced configuration has been deprecated.
156+
157+ ✖ Validation Error:
158+
159+ Invalid value for 'subTaskConcurrency': 10
160+
161+ Advanced configuration has been deprecated.
162+
163+ See https://github.com/okonet/lint-staged#configuration.
164+ ERROR Error: ✖ Validation Error:
165+
166+ Invalid value for 'chunkSize': 10
167+
168+ Advanced configuration has been deprecated.
169+
170+ ✖ Validation Error:
171+
172+ Invalid value for 'concurrent': false
173+
174+ Advanced configuration has been deprecated.
175+
176+ ✖ Validation Error:
177+
178+ Invalid value for 'globOptions': { matchBase : false }
179+
180+ Advanced configuration has been deprecated.
181+
182+ ✖ Validation Error:
183+
184+ Invalid value for 'ignore': [ 'test.js' ]
185+
186+ Advanced configuration has been deprecated.
187+
188+ ✖ Validation Error:
189+
190+ Invalid value for 'linters': { ' *.js' : [ ' eslint' ] }
191+
192+ Advanced configuration has been deprecated.
193+
194+ ✖ Validation Error:
195+
196+ Invalid value for 'relative': true
197+
198+ Advanced configuration has been deprecated.
199+
200+ ✖ Validation Error:
201+
202+ Invalid value for 'renderer': 'silent'
203+
204+ Advanced configuration has been deprecated.
205+
206+ ✖ Validation Error:
207+
208+ Invalid value for 'subTaskConcurrency': 10
209+
210+ Advanced configuration has been deprecated. Failed to parse config from file ".lintstagedrc.json".
211+
212+ Error: ✖ Validation Error:
213+
71214 Invalid value for 'chunkSize': 10
72215
73216 Advanced configuration has been deprecated.
0 commit comments