Update checked-in dependencies
This commit is contained in:
parent
1c369971ff
commit
9b3d4fd580
9 changed files with 58 additions and 18 deletions
6
node_modules/.package-lock.json
generated
vendored
6
node_modules/.package-lock.json
generated
vendored
|
|
@ -1955,9 +1955,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint": {
|
"node_modules/eslint": {
|
||||||
"version": "7.31.0",
|
"version": "7.32.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.31.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz",
|
||||||
"integrity": "sha512-vafgJpSh2ia8tnTkNUkwxGmnumgckLh5aAbLa1xRmIn9+owi8qBNGKL+B881kNKNTy7FFqTEkpNkUvmw0n6PkA==",
|
"integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "7.12.11",
|
"@babel/code-frame": "7.12.11",
|
||||||
|
|
|
||||||
16
node_modules/eslint/CHANGELOG.md
generated
vendored
16
node_modules/eslint/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,19 @@
|
||||||
|
v7.32.0 - July 30, 2021
|
||||||
|
|
||||||
|
* [`3c78a7b`](https://github.com/eslint/eslint/commit/3c78a7bff6044fd196ae3b737983e6744c6eb7c8) Chore: Adopt `eslint-plugin/prefer-message-ids` rule internally (#14841) (Bryan Mishkin)
|
||||||
|
* [`faecf56`](https://github.com/eslint/eslint/commit/faecf56cdb4146b28bfa4f1980adb41b4d3614b1) Update: change reporting location for `curly` rule (refs #12334) (#14766) (Nitin Kumar)
|
||||||
|
* [`d7dc07a`](https://github.com/eslint/eslint/commit/d7dc07a15e256cee9232183165e2f6102f2c0873) Fix: ignore lines with empty elements (fixes #12756) (#14837) (Soufiane Boutahlil)
|
||||||
|
* [`1bfbefd`](https://github.com/eslint/eslint/commit/1bfbefdaaf19ef32df42b89a3f5d32cff1e5b831) New: Exit on fatal error (fixes #13711) (#14730) (Antonios Katopodis)
|
||||||
|
* [`ed007c8`](https://github.com/eslint/eslint/commit/ed007c82ee9d2170c87500d98303554b5f90b915) Chore: Simplify internal `no-invalid-meta` rule (#14842) (Bryan Mishkin)
|
||||||
|
* [`d53d906`](https://github.com/eslint/eslint/commit/d53d9064b9dd0dd6a8ea39e07b16310c8364db69) Docs: Prepare data for website to indicate rules with suggestions (#14830) (Bryan Mishkin)
|
||||||
|
* [`d28f2ff`](https://github.com/eslint/eslint/commit/d28f2ffb986e49d6da5c1d91215580591f4cfd35) Docs: Reference eslint-config-eslint to avoid potential for staleness (#14805) (Brett Zamir)
|
||||||
|
* [`8be8a36`](https://github.com/eslint/eslint/commit/8be8a36010145dfcd31cbdd4f781a91989e3b1bd) Chore: Adopt `eslint-plugin/require-meta-docs-url` rule internally (#14823) (Bryan Mishkin)
|
||||||
|
* [`f9c164f`](https://github.com/eslint/eslint/commit/f9c164f7b74ca73384c8c80eed5bdbe359b44f6c) Docs: New syntax issue template (#14826) (Nicholas C. Zakas)
|
||||||
|
* [`eba0c45`](https://github.com/eslint/eslint/commit/eba0c4595c126a91f700d5f2e8723ec3f820a830) Chore: assertions on reporting loc in `unicode-bom` (refs #12334) (#14809) (Nitin Kumar)
|
||||||
|
* [`ed945bd`](https://github.com/eslint/eslint/commit/ed945bd662714b1917e9de71d5b322a28be9161b) Docs: fix multiple broken links (#14833) (Sam Chen)
|
||||||
|
* [`60df44c`](https://github.com/eslint/eslint/commit/60df44c79b0f74406119c0c040a360ca84e721fc) Chore: use `actions/setup-node@v2` (#14816) (Nitin Kumar)
|
||||||
|
* [`6641d88`](https://github.com/eslint/eslint/commit/6641d88e17d952a8e51df5e0d3882a842d4c3f35) Docs: Update README team and sponsors (ESLint Jenkins)
|
||||||
|
|
||||||
v7.31.0 - July 17, 2021
|
v7.31.0 - July 17, 2021
|
||||||
|
|
||||||
* [`efdbb12`](https://github.com/eslint/eslint/commit/efdbb1227019427ec2d968a8d6e9151dd8a77c35) Upgrade: @eslint/eslintrc to v0.4.3 (#14808) (Brandon Mills)
|
* [`efdbb12`](https://github.com/eslint/eslint/commit/efdbb1227019427ec2d968a8d6e9151dd8a77c35) Upgrade: @eslint/eslintrc to v0.4.3 (#14808) (Brandon Mills)
|
||||||
|
|
|
||||||
10
node_modules/eslint/README.md
generated
vendored
10
node_modules/eslint/README.md
generated
vendored
|
|
@ -254,6 +254,16 @@ Toru Nagashima
|
||||||
The people who review and fix bugs and help triage issues.
|
The people who review and fix bugs and help triage issues.
|
||||||
|
|
||||||
<table><tbody><tr><td align="center" valign="top" width="11%">
|
<table><tbody><tr><td align="center" valign="top" width="11%">
|
||||||
|
<a href="https://github.com/brettz9">
|
||||||
|
<img src="https://github.com/brettz9.png?s=75" width="75" height="75"><br />
|
||||||
|
Brett Zamir
|
||||||
|
</a>
|
||||||
|
</td><td align="center" valign="top" width="11%">
|
||||||
|
<a href="https://github.com/bmish">
|
||||||
|
<img src="https://github.com/bmish.png?s=75" width="75" height="75"><br />
|
||||||
|
Bryan Mishkin
|
||||||
|
</a>
|
||||||
|
</td><td align="center" valign="top" width="11%">
|
||||||
<a href="https://github.com/g-plane">
|
<a href="https://github.com/g-plane">
|
||||||
<img src="https://github.com/g-plane.png?s=75" width="75" height="75"><br />
|
<img src="https://github.com/g-plane.png?s=75" width="75" height="75"><br />
|
||||||
Pig Fang
|
Pig Fang
|
||||||
|
|
|
||||||
6
node_modules/eslint/lib/cli-engine/cli-engine.js
generated
vendored
6
node_modules/eslint/lib/cli-engine/cli-engine.js
generated
vendored
|
|
@ -156,6 +156,9 @@ function calculateStatsPerFile(messages) {
|
||||||
return messages.reduce((stat, message) => {
|
return messages.reduce((stat, message) => {
|
||||||
if (message.fatal || message.severity === 2) {
|
if (message.fatal || message.severity === 2) {
|
||||||
stat.errorCount++;
|
stat.errorCount++;
|
||||||
|
if (message.fatal) {
|
||||||
|
stat.fatalErrorCount++;
|
||||||
|
}
|
||||||
if (message.fix) {
|
if (message.fix) {
|
||||||
stat.fixableErrorCount++;
|
stat.fixableErrorCount++;
|
||||||
}
|
}
|
||||||
|
|
@ -168,6 +171,7 @@ function calculateStatsPerFile(messages) {
|
||||||
return stat;
|
return stat;
|
||||||
}, {
|
}, {
|
||||||
errorCount: 0,
|
errorCount: 0,
|
||||||
|
fatalErrorCount: 0,
|
||||||
warningCount: 0,
|
warningCount: 0,
|
||||||
fixableErrorCount: 0,
|
fixableErrorCount: 0,
|
||||||
fixableWarningCount: 0
|
fixableWarningCount: 0
|
||||||
|
|
@ -183,12 +187,14 @@ function calculateStatsPerFile(messages) {
|
||||||
function calculateStatsPerRun(results) {
|
function calculateStatsPerRun(results) {
|
||||||
return results.reduce((stat, result) => {
|
return results.reduce((stat, result) => {
|
||||||
stat.errorCount += result.errorCount;
|
stat.errorCount += result.errorCount;
|
||||||
|
stat.fatalErrorCount += result.fatalErrorCount;
|
||||||
stat.warningCount += result.warningCount;
|
stat.warningCount += result.warningCount;
|
||||||
stat.fixableErrorCount += result.fixableErrorCount;
|
stat.fixableErrorCount += result.fixableErrorCount;
|
||||||
stat.fixableWarningCount += result.fixableWarningCount;
|
stat.fixableWarningCount += result.fixableWarningCount;
|
||||||
return stat;
|
return stat;
|
||||||
}, {
|
}, {
|
||||||
errorCount: 0,
|
errorCount: 0,
|
||||||
|
fatalErrorCount: 0,
|
||||||
warningCount: 0,
|
warningCount: 0,
|
||||||
fixableErrorCount: 0,
|
fixableErrorCount: 0,
|
||||||
fixableWarningCount: 0
|
fixableWarningCount: 0
|
||||||
|
|
|
||||||
13
node_modules/eslint/lib/cli.js
generated
vendored
13
node_modules/eslint/lib/cli.js
generated
vendored
|
|
@ -131,14 +131,16 @@ function translateOptions({
|
||||||
*/
|
*/
|
||||||
function countErrors(results) {
|
function countErrors(results) {
|
||||||
let errorCount = 0;
|
let errorCount = 0;
|
||||||
|
let fatalErrorCount = 0;
|
||||||
let warningCount = 0;
|
let warningCount = 0;
|
||||||
|
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
errorCount += result.errorCount;
|
errorCount += result.errorCount;
|
||||||
|
fatalErrorCount += result.fatalErrorCount;
|
||||||
warningCount += result.warningCount;
|
warningCount += result.warningCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
return { errorCount, warningCount };
|
return { errorCount, fatalErrorCount, warningCount };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -314,9 +316,12 @@ const cli = {
|
||||||
if (await printResults(engine, resultsToPrint, options.format, options.outputFile)) {
|
if (await printResults(engine, resultsToPrint, options.format, options.outputFile)) {
|
||||||
|
|
||||||
// Errors and warnings from the original unfiltered results should determine the exit code
|
// Errors and warnings from the original unfiltered results should determine the exit code
|
||||||
const { errorCount, warningCount } = countErrors(results);
|
const { errorCount, fatalErrorCount, warningCount } = countErrors(results);
|
||||||
|
|
||||||
const tooManyWarnings =
|
const tooManyWarnings =
|
||||||
options.maxWarnings >= 0 && warningCount > options.maxWarnings;
|
options.maxWarnings >= 0 && warningCount > options.maxWarnings;
|
||||||
|
const shouldExitForFatalErrors =
|
||||||
|
options.exitOnFatalError && fatalErrorCount > 0;
|
||||||
|
|
||||||
if (!errorCount && tooManyWarnings) {
|
if (!errorCount && tooManyWarnings) {
|
||||||
log.error(
|
log.error(
|
||||||
|
|
@ -325,6 +330,10 @@ const cli = {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (shouldExitForFatalErrors) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
return (errorCount || tooManyWarnings) ? 1 : 0;
|
return (errorCount || tooManyWarnings) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
6
node_modules/eslint/lib/options.js
generated
vendored
6
node_modules/eslint/lib/options.js
generated
vendored
|
|
@ -290,6 +290,12 @@ module.exports = optionator({
|
||||||
default: "true",
|
default: "true",
|
||||||
description: "Prevent errors when pattern is unmatched"
|
description: "Prevent errors when pattern is unmatched"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
option: "exit-on-fatal-error",
|
||||||
|
type: "Boolean",
|
||||||
|
default: "false",
|
||||||
|
description: "Exit with exit code 2 in case of fatal error"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
option: "debug",
|
option: "debug",
|
||||||
type: "Boolean",
|
type: "Boolean",
|
||||||
|
|
|
||||||
2
node_modules/eslint/lib/rules/comma-style.js
generated
vendored
2
node_modules/eslint/lib/rules/comma-style.js
generated
vendored
|
|
@ -216,6 +216,8 @@ module.exports = {
|
||||||
previousItemToken = tokenAfterItem
|
previousItemToken = tokenAfterItem
|
||||||
? sourceCode.getTokenBefore(tokenAfterItem)
|
? sourceCode.getTokenBefore(tokenAfterItem)
|
||||||
: sourceCode.ast.tokens[sourceCode.ast.tokens.length - 1];
|
: sourceCode.ast.tokens[sourceCode.ast.tokens.length - 1];
|
||||||
|
} else {
|
||||||
|
previousItemToken = currentItemToken;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
13
node_modules/eslint/lib/rules/curly.js
generated
vendored
13
node_modules/eslint/lib/rules/curly.js
generated
vendored
|
|
@ -131,15 +131,6 @@ module.exports = {
|
||||||
return token.value === "else" && token.type === "Keyword";
|
return token.value === "else" && token.type === "Keyword";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the `else` keyword token of a given `IfStatement` node.
|
|
||||||
* @param {ASTNode} node A `IfStatement` node to get.
|
|
||||||
* @returns {Token} The `else` keyword token.
|
|
||||||
*/
|
|
||||||
function getElseKeyword(node) {
|
|
||||||
return node.alternate && sourceCode.getFirstTokenBetween(node.consequent, node.alternate, isElseKeywordToken);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether the given node has an `else` keyword token as the first token after.
|
* Determines whether the given node has an `else` keyword token as the first token after.
|
||||||
* @param {ASTNode} node The node to check.
|
* @param {ASTNode} node The node to check.
|
||||||
|
|
@ -361,7 +352,7 @@ module.exports = {
|
||||||
if (this.expected) {
|
if (this.expected) {
|
||||||
context.report({
|
context.report({
|
||||||
node,
|
node,
|
||||||
loc: (name !== "else" ? node : getElseKeyword(node)).loc.start,
|
loc: body.loc,
|
||||||
messageId: opts && opts.condition ? "missingCurlyAfterCondition" : "missingCurlyAfter",
|
messageId: opts && opts.condition ? "missingCurlyAfterCondition" : "missingCurlyAfter",
|
||||||
data: {
|
data: {
|
||||||
name
|
name
|
||||||
|
|
@ -371,7 +362,7 @@ module.exports = {
|
||||||
} else {
|
} else {
|
||||||
context.report({
|
context.report({
|
||||||
node,
|
node,
|
||||||
loc: (name !== "else" ? node : getElseKeyword(node)).loc.start,
|
loc: body.loc,
|
||||||
messageId: opts && opts.condition ? "unexpectedCurlyAfterCondition" : "unexpectedCurlyAfter",
|
messageId: opts && opts.condition ? "unexpectedCurlyAfterCondition" : "unexpectedCurlyAfter",
|
||||||
data: {
|
data: {
|
||||||
name
|
name
|
||||||
|
|
|
||||||
4
node_modules/eslint/package.json
generated
vendored
4
node_modules/eslint/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eslint",
|
"name": "eslint",
|
||||||
"version": "7.31.0",
|
"version": "7.32.0",
|
||||||
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
||||||
"description": "An AST-based pattern checker for JavaScript.",
|
"description": "An AST-based pattern checker for JavaScript.",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
@ -96,7 +96,7 @@
|
||||||
"ejs": "^3.0.2",
|
"ejs": "^3.0.2",
|
||||||
"eslint": "file:.",
|
"eslint": "file:.",
|
||||||
"eslint-config-eslint": "file:packages/eslint-config-eslint",
|
"eslint-config-eslint": "file:packages/eslint-config-eslint",
|
||||||
"eslint-plugin-eslint-plugin": "^3.2.0",
|
"eslint-plugin-eslint-plugin": "^3.5.3",
|
||||||
"eslint-plugin-internal-rules": "file:tools/internal-rules",
|
"eslint-plugin-internal-rules": "file:tools/internal-rules",
|
||||||
"eslint-plugin-jsdoc": "^25.4.3",
|
"eslint-plugin-jsdoc": "^25.4.3",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue