Update checked-in dependencies
This commit is contained in:
parent
99c9f6a498
commit
e266801e21
242 changed files with 2638 additions and 9296 deletions
2
node_modules/eslint/README.md
generated
vendored
2
node_modules/eslint/README.md
generated
vendored
|
|
@ -284,7 +284,7 @@ The following companies, organizations, and individuals support ESLint's ongoing
|
|||
<p><a href="#"><img src="https://images.opencollective.com/2021-frameworks-fund/logo.png" alt="Chrome Frameworks Fund" height="undefined"></a> <a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="undefined"></a></p><h3>Gold Sponsors</h3>
|
||||
<p><a href="https://engineering.salesforce.com"><img src="https://images.opencollective.com/salesforce/ca8f997/logo.png" alt="Salesforce" height="96"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="96"></a></p><h3>Silver Sponsors</h3>
|
||||
<p><a href="https://sentry.io"><img src="https://avatars.githubusercontent.com/u/1396951?v=4" alt="Sentry" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301?v=4" alt="American Express" height="64"></a></p><h3>Bronze Sponsors</h3>
|
||||
<p><a href="https://themeisle.com"><img src="https://images.opencollective.com/themeisle/d5592fe/logo.png" alt="ThemeIsle" height="32"></a> <a href="https://nx.dev"><img src="https://images.opencollective.com/nx/0efbe42/logo.png" alt="Nx (by Nrwl)" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8: free icons, photos, illustrations, and music" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://transloadit.com/"><img src="https://avatars.githubusercontent.com/u/125754?v=4" alt="Transloadit" height="32"></a> <a href="https://www.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465?v=4" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a> <a href="https://quickbookstoolhub.com"><img src="https://avatars.githubusercontent.com/u/95090305?u=e5bc398ef775c9ed19f955c675cdc1fb6abf01df&v=4" alt="QuickBooks Tool hub" height="32"></a></p>
|
||||
<p><a href="https://iboysoft.com/"><img src="https://images.opencollective.com/iboysoft-software/7f9d60e/avatar.png" alt="iBoysoft" height="32"></a> <a href="https://themeisle.com"><img src="https://images.opencollective.com/themeisle/d5592fe/logo.png" alt="ThemeIsle" height="32"></a> <a href="https://nx.dev"><img src="https://images.opencollective.com/nx/0efbe42/logo.png" alt="Nx (by Nrwl)" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8: free icons, photos, illustrations, and music" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://transloadit.com/"><img src="https://avatars.githubusercontent.com/u/125754?v=4" alt="Transloadit" height="32"></a> <a href="https://www.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465?v=4" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a> <a href="https://quickbookstoolhub.com"><img src="https://avatars.githubusercontent.com/u/95090305?u=e5bc398ef775c9ed19f955c675cdc1fb6abf01df&v=4" alt="QuickBooks Tool hub" height="32"></a></p>
|
||||
<!--sponsorsend-->
|
||||
|
||||
## Technology Sponsors
|
||||
|
|
|
|||
1
node_modules/eslint/lib/eslint/flat-eslint.js
generated
vendored
1
node_modules/eslint/lib/eslint/flat-eslint.js
generated
vendored
|
|
@ -576,7 +576,6 @@ class FlatESLint {
|
|||
cacheFilePath,
|
||||
lintResultCache,
|
||||
defaultConfigs,
|
||||
defaultIgnores: () => false,
|
||||
configs: null
|
||||
});
|
||||
|
||||
|
|
|
|||
20
node_modules/eslint/lib/linter/report-translator.js
generated
vendored
20
node_modules/eslint/lib/linter/report-translator.js
generated
vendored
|
|
@ -100,6 +100,22 @@ function normalizeReportLoc(descriptor) {
|
|||
return descriptor.node.loc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clones the given fix object.
|
||||
* @param {Fix|null} fix The fix to clone.
|
||||
* @returns {Fix|null} Deep cloned fix object or `null` if `null` or `undefined` was passed in.
|
||||
*/
|
||||
function cloneFix(fix) {
|
||||
if (!fix) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
range: [fix.range[0], fix.range[1]],
|
||||
text: fix.text
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that a fix has a valid range.
|
||||
* @param {Fix|null} fix The fix to validate.
|
||||
|
|
@ -137,7 +153,7 @@ function mergeFixes(fixes, sourceCode) {
|
|||
return null;
|
||||
}
|
||||
if (fixes.length === 1) {
|
||||
return fixes[0];
|
||||
return cloneFix(fixes[0]);
|
||||
}
|
||||
|
||||
fixes.sort(compareFixesByRange);
|
||||
|
|
@ -183,7 +199,7 @@ function normalizeFixes(descriptor, sourceCode) {
|
|||
}
|
||||
|
||||
assertValidFix(fix);
|
||||
return fix;
|
||||
return cloneFix(fix);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
node_modules/eslint/lib/rules/indent.js
generated
vendored
2
node_modules/eslint/lib/rules/indent.js
generated
vendored
|
|
@ -1250,7 +1250,7 @@ module.exports = {
|
|||
|
||||
IfStatement(node) {
|
||||
addBlocklessNodeIndent(node.consequent);
|
||||
if (node.alternate && node.alternate.type !== "IfStatement") {
|
||||
if (node.alternate) {
|
||||
addBlocklessNodeIndent(node.alternate);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
6
node_modules/eslint/lib/rules/no-useless-escape.js
generated
vendored
6
node_modules/eslint/lib/rules/no-useless-escape.js
generated
vendored
|
|
@ -94,6 +94,7 @@ module.exports = {
|
|||
messages: {
|
||||
unnecessaryEscape: "Unnecessary escape character: \\{{character}}.",
|
||||
removeEscape: "Remove the `\\`. This maintains the current functionality.",
|
||||
removeEscapeDoNotKeepSemantics: "Remove the `\\` if it was inserted by mistake.",
|
||||
escapeBackslash: "Replace the `\\` with `\\\\` to include the actual backslash character."
|
||||
},
|
||||
|
||||
|
|
@ -125,7 +126,10 @@ module.exports = {
|
|||
data: { character },
|
||||
suggest: [
|
||||
{
|
||||
messageId: "removeEscape",
|
||||
|
||||
// Removing unnecessary `\` characters in a directive is not guaranteed to maintain functionality.
|
||||
messageId: astUtils.isDirective(node.parent)
|
||||
? "removeEscapeDoNotKeepSemantics" : "removeEscape",
|
||||
fix(fixer) {
|
||||
return fixer.removeRange(range);
|
||||
}
|
||||
|
|
|
|||
46
node_modules/eslint/lib/rules/padding-line-between-statements.js
generated
vendored
46
node_modules/eslint/lib/rules/padding-line-between-statements.js
generated
vendored
|
|
@ -130,42 +130,6 @@ function isBlockLikeStatement(sourceCode, node) {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the given node is a directive or not.
|
||||
* @param {ASTNode} node The node to check.
|
||||
* @param {SourceCode} sourceCode The source code object to get tokens.
|
||||
* @returns {boolean} `true` if the node is a directive.
|
||||
*/
|
||||
function isDirective(node, sourceCode) {
|
||||
return (
|
||||
astUtils.isTopLevelExpressionStatement(node) &&
|
||||
node.expression.type === "Literal" &&
|
||||
typeof node.expression.value === "string" &&
|
||||
!astUtils.isParenthesised(sourceCode, node.expression)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the given node is a part of directive prologue or not.
|
||||
* @param {ASTNode} node The node to check.
|
||||
* @param {SourceCode} sourceCode The source code object to get tokens.
|
||||
* @returns {boolean} `true` if the node is a part of directive prologue.
|
||||
*/
|
||||
function isDirectivePrologue(node, sourceCode) {
|
||||
if (isDirective(node, sourceCode)) {
|
||||
for (const sibling of node.parent.body) {
|
||||
if (sibling === node) {
|
||||
break;
|
||||
}
|
||||
if (!isDirective(sibling, sourceCode)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the actual last token.
|
||||
*
|
||||
|
|
@ -359,12 +323,10 @@ const StatementTypes = {
|
|||
CJS_IMPORT.test(sourceCode.getText(node.declarations[0].init))
|
||||
},
|
||||
directive: {
|
||||
test: isDirectivePrologue
|
||||
test: astUtils.isDirective
|
||||
},
|
||||
expression: {
|
||||
test: (node, sourceCode) =>
|
||||
node.type === "ExpressionStatement" &&
|
||||
!isDirectivePrologue(node, sourceCode)
|
||||
test: node => node.type === "ExpressionStatement" && !astUtils.isDirective(node)
|
||||
},
|
||||
iife: {
|
||||
test: isIIFEStatement
|
||||
|
|
@ -375,10 +337,10 @@ const StatementTypes = {
|
|||
isBlockLikeStatement(sourceCode, node)
|
||||
},
|
||||
"multiline-expression": {
|
||||
test: (node, sourceCode) =>
|
||||
test: node =>
|
||||
node.loc.start.line !== node.loc.end.line &&
|
||||
node.type === "ExpressionStatement" &&
|
||||
!isDirectivePrologue(node, sourceCode)
|
||||
!astUtils.isDirective(node)
|
||||
},
|
||||
|
||||
"multiline-const": newMultilineKeywordTester("const"),
|
||||
|
|
|
|||
12
node_modules/eslint/lib/rules/utils/ast-utils.js
generated
vendored
12
node_modules/eslint/lib/rules/utils/ast-utils.js
generated
vendored
|
|
@ -1006,6 +1006,15 @@ function isTopLevelExpressionStatement(node) {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the given node is a part of a directive prologue or not.
|
||||
* @param {ASTNode} node The node to check.
|
||||
* @returns {boolean} `true` if the node is a part of directive prologue.
|
||||
*/
|
||||
function isDirective(node) {
|
||||
return node.type === "ExpressionStatement" && typeof node.directive === "string";
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Public Interface
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
@ -2158,5 +2167,6 @@ module.exports = {
|
|||
getSwitchCaseColonToken,
|
||||
getModuleExportName,
|
||||
isConstant,
|
||||
isTopLevelExpressionStatement
|
||||
isTopLevelExpressionStatement,
|
||||
isDirective
|
||||
};
|
||||
|
|
|
|||
4
node_modules/eslint/lib/unsupported-api.js
generated
vendored
4
node_modules/eslint/lib/unsupported-api.js
generated
vendored
|
|
@ -14,6 +14,7 @@
|
|||
const { FileEnumerator } = require("./cli-engine/file-enumerator");
|
||||
const { FlatESLint, shouldUseFlatConfig } = require("./eslint/flat-eslint");
|
||||
const FlatRuleTester = require("./rule-tester/flat-rule-tester");
|
||||
const { ESLint } = require("./eslint/eslint");
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Exports
|
||||
|
|
@ -24,5 +25,6 @@ module.exports = {
|
|||
FlatESLint,
|
||||
shouldUseFlatConfig,
|
||||
FlatRuleTester,
|
||||
FileEnumerator
|
||||
FileEnumerator,
|
||||
LegacyESLint: ESLint
|
||||
};
|
||||
|
|
|
|||
5
node_modules/eslint/package.json
generated
vendored
5
node_modules/eslint/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eslint",
|
||||
"version": "8.44.0",
|
||||
"version": "8.45.0",
|
||||
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
||||
"description": "An AST-based pattern checker for JavaScript.",
|
||||
"bin": {
|
||||
|
|
@ -85,7 +85,6 @@
|
|||
"globals": "^13.19.0",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.2.0",
|
||||
"import-fresh": "^3.0.0",
|
||||
"imurmurhash": "^0.1.4",
|
||||
"is-glob": "^4.0.0",
|
||||
"is-path-inside": "^3.0.3",
|
||||
|
|
@ -97,7 +96,6 @@
|
|||
"natural-compare": "^1.4.0",
|
||||
"optionator": "^0.9.3",
|
||||
"strip-ansi": "^6.0.1",
|
||||
"strip-json-comments": "^3.1.0",
|
||||
"text-table": "^0.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -156,7 +154,6 @@
|
|||
"semver": "^7.5.3",
|
||||
"shelljs": "^0.8.2",
|
||||
"sinon": "^11.0.0",
|
||||
"temp": "^0.9.0",
|
||||
"webpack": "^5.23.0",
|
||||
"webpack-cli": "^4.5.0",
|
||||
"yorkie": "^2.0.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue