Skip to content
Permalink
Browse files
Upgrade: @eslint/eslintrc@1.0.0 (#14865)
* Upgrade: @eslint/eslintrc with `exports` field

* Use environments from @eslint/eslintrc Legacy API

* Use eslint/eslintrc main branch

* Use universal entry point

* @eslint/eslintrc@1.0.0
  • Loading branch information
mdjermanovic committed Aug 14, 2021
1 parent 1f5d088 commit ec9db63e53a6605a558dcd82947d2425f89887c3
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 511 deletions.
@@ -11,7 +11,11 @@

const equal = require("fast-deep-equal"),
recConfig = require("../../conf/eslint-recommended"),
ConfigOps = require("@eslint/eslintrc/lib/shared/config-ops"),
{
Legacy: {
ConfigOps
}
} = require("@eslint/eslintrc"),
{ Linter } = require("../linter"),
configRule = require("./config-rule");

@@ -18,9 +18,13 @@ const util = require("util"),
semver = require("semver"),
espree = require("espree"),
recConfig = require("../../conf/eslint-recommended"),
ConfigOps = require("@eslint/eslintrc/lib/shared/config-ops"),
{
Legacy: {
ConfigOps,
naming
}
} = require("@eslint/eslintrc"),
log = require("../shared/logging"),
naming = require("@eslint/eslintrc/lib/shared/naming"),
ModuleResolver = require("../shared/relative-module-resolver"),
autoconfig = require("./autoconfig.js"),
ConfigFile = require("./config-file"),
@@ -11,7 +11,11 @@
//------------------------------------------------------------------------------

const levn = require("levn"),
ConfigOps = require("@eslint/eslintrc/lib/shared/config-ops");
{
Legacy: {
ConfigOps
}
} = require("@eslint/eslintrc/universal"); // eslint-disable-line node/no-missing-require -- false positive

const debug = require("debug")("eslint:config-comment-parser");

@@ -16,11 +16,15 @@ const
evk = require("eslint-visitor-keys"),
espree = require("espree"),
merge = require("lodash.merge"),
BuiltInEnvironments = require("@eslint/eslintrc/conf/environments"),
pkg = require("../../package.json"),
astUtils = require("../shared/ast-utils"),
ConfigOps = require("@eslint/eslintrc/lib/shared/config-ops"),
ConfigValidator = require("@eslint/eslintrc/lib/shared/config-validator"),
{
Legacy: {
ConfigOps,
ConfigValidator,
environments: BuiltInEnvironments
}
} = require("@eslint/eslintrc/universal"), // eslint-disable-line node/no-missing-require -- false positive
Traverser = require("../shared/traverser"),
{ SourceCode } = require("../source-code"),
CodePathAnalyzer = require("./code-path-analysis/code-path-analyzer"),
@@ -24,9 +24,13 @@
const
util = require("util"),
configSchema = require("../../conf/config-schema"),
BuiltInEnvironments = require("@eslint/eslintrc/conf/environments"),
BuiltInRules = require("../rules"),
ConfigOps = require("@eslint/eslintrc/lib/shared/config-ops"),
{
Legacy: {
ConfigOps,
environments: BuiltInEnvironments
}
} = require("@eslint/eslintrc"),
{ emitDeprecationWarning } = require("./deprecation-warnings");

const ajv = require("./ajv")();
@@ -48,7 +48,7 @@
"homepage": "https://eslint.org",
"bugs": "https://github.com/eslint/eslint/issues/",
"dependencies": {
"@eslint/eslintrc": "^0.4.3",
"@eslint/eslintrc": "^1.0.0",
"@humanwhocodes/config-array": "^0.6.0",
"ajv": "^6.10.0",
"chalk": "^4.0.0",

0 comments on commit ec9db63

Please sign in to comment.