Update checked-in dependencies
This commit is contained in:
parent
5d6442e87d
commit
026e833827
36 changed files with 1972 additions and 643 deletions
19
node_modules/eslint/bin/eslint.js
generated
vendored
19
node_modules/eslint/bin/eslint.js
generated
vendored
|
|
@ -92,6 +92,14 @@ function getErrorMessage(error) {
|
|||
return util.format("%o", error);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tracks error messages that are shown to the user so we only ever show the
|
||||
* same message once.
|
||||
* @type {Set<string>}
|
||||
*/
|
||||
|
||||
const displayedErrors = new Set();
|
||||
|
||||
/**
|
||||
* Catch and report unexpected error.
|
||||
* @param {any} error The thrown error object.
|
||||
|
|
@ -101,14 +109,17 @@ function onFatalError(error) {
|
|||
process.exitCode = 2;
|
||||
|
||||
const { version } = require("../package.json");
|
||||
const message = getErrorMessage(error);
|
||||
|
||||
console.error(`
|
||||
const message = `
|
||||
Oops! Something went wrong! :(
|
||||
|
||||
ESLint: ${version}
|
||||
|
||||
${message}`);
|
||||
${getErrorMessage(error)}`;
|
||||
|
||||
if (!displayedErrors.has(message)) {
|
||||
console.error(message);
|
||||
displayedErrors.add(message);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue