Skip to content

Commit bd952e6

Browse files
authored
Yarn upgrade (codeclimate#607)
1 parent 6f1e556 commit bd952e6

File tree

3 files changed

+2264
-2376
lines changed

3 files changed

+2264
-2376
lines changed

lib/eslint.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -239,21 +239,21 @@ async function run(console, runOptions) {
239239
}
240240

241241
let disabledRules = modulesList(patch.disabledRules());
242-
if (disabledRules ) {
242+
if (disabledRules) {
243243
console.error("Ignoring the following rules that rely on module resolution:");
244244
console.error(disabledRules);
245245
}
246246

247247
const removedSettings = modulesList(patch.removedSettings());
248-
if (removedSettings ) {
248+
if (removedSettings) {
249249
console.error("Ignoring the following settings that rely on module resolution:")
250250
console.error(removedSettings);
251251
}
252252

253253
const skippedModules = modulesList(patch.skippedModules());
254254
if (skippedModules) {
255255
console.error("Skipping the following modules that rely on module resolution:")
256-
printList(skippedModules);
256+
console.error(skippedModules);
257257
}
258258

259259
if (debug) {

lib/eslint8-patch.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ module.exports = function patch() {
3131
const disabledRules = new Set()
3232
const removedSettings = new Set()
3333

34-
function warnModuleNotSupported(name) {
34+
function warnModuleNotSupported(name, msg) {
3535
if (!skippedModules.includes(name)) {
36-
skippedModules.push(name)
37-
console.error(`Module not supported: ${name}`)
36+
skippedModules.push(name);
37+
console.error(`Module not supported: ${name}`);
38+
console.error(msg);
3839
}
3940
}
4041

@@ -50,7 +51,7 @@ module.exports = function patch() {
5051
const original = ConfigArrayFactory.prototype[m]
5152

5253
const skip = (name, msg) => {
53-
warnModuleNotSupported(name)
54+
warnModuleNotSupported(name, msg)
5455
return []
5556
}
5657

0 commit comments

Comments
 (0)