diff --git a/tools/node_modules/eslint/README.md b/tools/node_modules/eslint/README.md
index e1978ce48ea0c5..a3182dbb0136cb 100644
--- a/tools/node_modules/eslint/README.md
+++ b/tools/node_modules/eslint/README.md
@@ -250,8 +250,8 @@ The following companies, organizations, and individuals support ESLint's ongoing
Gold Sponsors
Silver Sponsors
-
Bronze Sponsors
-
+
Bronze Sponsors
+
## Technology Sponsors
diff --git a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/environments.js b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/environments.js
index ada09c8c9bfad1..d3237c7256b66d 100644
--- a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/environments.js
+++ b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/environments.js
@@ -90,7 +90,7 @@ module.exports = new Map(Object.entries({
ecmaVersion: 12
}
},
-
+
// Platforms
browser: {
globals: globals.browser
diff --git a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/eslint-all.js b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/eslint-all.js
index 10c5304fd3f243..cdd8a3e4711d00 100644
--- a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/eslint-all.js
+++ b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/conf/eslint-all.js
@@ -9,6 +9,7 @@
// Requirements
//------------------------------------------------------------------------------
+// FIXME: "../lib/rules" doesn't exist in this package
const builtInRules = require("../lib/rules");
//------------------------------------------------------------------------------
diff --git a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js
index 480496ecba0d22..a6933964e9341b 100644
--- a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js
+++ b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js
@@ -471,6 +471,7 @@ class CascadingConfigArrayFactory {
const validator = new ConfigValidator({
builtInRules: configArrayFactory.builtInRules
});
+
validator.validateConfigArray(finalConfigArray);
// Cache it.
diff --git a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array-factory.js b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array-factory.js
index 367e5b80687a9e..97f8b5cb2d562e 100644
--- a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array-factory.js
+++ b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/config-array-factory.js
@@ -628,6 +628,7 @@ class ConfigArrayFactory {
*/
_normalizeConfigData(configData, ctx) {
const validator = new ConfigValidator();
+
validator.validateConfigSchema(configData, ctx.name || ctx.filePath);
return this._normalizeObjectConfigData(configData, ctx);
}
diff --git a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/index.js b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/index.js
index 54a2697b3a39c2..90959c16e86fe7 100644
--- a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/index.js
+++ b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/index.js
@@ -31,11 +31,10 @@ const naming = require("./shared/naming");
module.exports = {
Legacy: {
- // config-array
ConfigArray,
createConfigArrayFactoryContext,
CascadingConfigArrayFactory,
- ConfigArray,
+ ConfigArrayFactory,
ConfigDependency,
ExtractedConfig,
IgnorePattern,
diff --git a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/config-validator.js b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/config-validator.js
index 873e6d33051e7f..d3c70012788c61 100644
--- a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/config-validator.js
+++ b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/lib/shared/config-validator.js
@@ -13,7 +13,6 @@ const
util = require("util"),
configSchema = require("../../conf/config-schema"),
BuiltInEnvironments = require("../../conf/environments"),
- // BuiltInRules = require("../rules"),
ConfigOps = require("./config-ops"),
{ emitDeprecationWarning } = require("./deprecation-warnings");
@@ -38,7 +37,7 @@ const validated = new WeakSet();
//-----------------------------------------------------------------------------
module.exports = class ConfigValidator {
- constructor({builtInRules = new Map()} = {}) {
+ constructor({ builtInRules = new Map() } = {}) {
this.builtInRules = builtInRules;
}
@@ -266,10 +265,10 @@ module.exports = class ConfigValidator {
* @returns {void}
*/
validateConfigSchema(config, source = null) {
- const validateSchema = this.validateSchema || ajv.compile(configSchema);
+ validateSchema = this.validateSchema || ajv.compile(configSchema);
if (!validateSchema(config)) {
- throw new Error(`ESLint configuration in ${source} is invalid:\n${formatErrors(validateSchema.errors)}`);
+ throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`);
}
if (Object.hasOwnProperty.call(config, "ecmaFeatures")) {
@@ -322,4 +321,4 @@ module.exports = class ConfigValidator {
}
}
-}
+};
diff --git a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/package.json b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/package.json
index 0da40935689c9f..da4e526248392c 100644
--- a/tools/node_modules/eslint/node_modules/@eslint/eslintrc/package.json
+++ b/tools/node_modules/eslint/node_modules/@eslint/eslintrc/package.json
@@ -9,7 +9,13 @@
"dependencies": {
"ajv": "^6.12.4",
"debug": "^4.1.1",
+ "espree": "^7.3.0",
+ "globals": "^12.1.0",
+ "ignore": "^4.0.6",
"import-fresh": "^3.2.1",
+ "js-yaml": "^3.13.1",
+ "lodash": "^4.17.19",
+ "minimatch": "^3.0.4",
"strip-json-comments": "^3.1.1"
},
"deprecated": false,
@@ -18,9 +24,14 @@
"chai": "^4.2.0",
"eslint": "^7.7.0",
"eslint-config-eslint": "^6.0.0",
- "eslint-release": "^3.1.0",
+ "eslint-plugin-jsdoc": "^22.1.0",
+ "eslint-plugin-node": "^11.1.0",
+ "eslint-release": "^3.1.2",
"mocha": "^8.1.1"
},
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ },
"files": [
"lib",
"conf",
@@ -47,8 +58,9 @@
"generate-betarelease": "eslint-generate-prerelease beta",
"generate-rcrelease": "eslint-generate-prerelease rc",
"generate-release": "eslint-generate-release",
+ "lint": "eslint .",
"publish-release": "eslint-publish-release",
"test": "mocha tests/lib/shared"
},
- "version": "0.1.0"
+ "version": "0.1.3"
}
\ No newline at end of file
diff --git a/tools/node_modules/eslint/package.json b/tools/node_modules/eslint/package.json
index dfccc0d238731b..3d2f9ab4c83ea4 100644
--- a/tools/node_modules/eslint/package.json
+++ b/tools/node_modules/eslint/package.json
@@ -12,7 +12,7 @@
"bundleDependencies": false,
"dependencies": {
"@babel/code-frame": "^7.0.0",
- "@eslint/eslintrc": "^0.1.0",
+ "@eslint/eslintrc": "^0.1.3",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
@@ -154,5 +154,5 @@
"test:cli": "mocha",
"webpack": "node Makefile.js webpack"
},
- "version": "7.8.0"
+ "version": "7.8.1"
}
\ No newline at end of file