Skip to content
Permalink
Browse files
Upgrade: @eslint/eslintrc@1.0.3 for Jest workaround (#15164)
* Upgrade: @eslint/eslintrc@1.0.3 for Jest workaround

* Chore: Remove unused disable comments

`eslint-plugin-node`'s `no-missing-require` previously had a false
positive report that the `@eslint/eslintrc/universal` export did not
exist. Now with the release of `@eslint/eslintrc@1.0.3` with a "fake"
(not part of `exports` in `package.json`) `universal` export, as a
workaround for Jest, `no-missing-require` is satisfied that it does
exist.
  • Loading branch information
btmills committed Oct 14, 2021
1 parent c584a63 commit f9217e527e1c49c6244400c4a58b6d1c14de51db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
@@ -15,7 +15,7 @@ const levn = require("levn"),
Legacy: {
ConfigOps
}
} = require("@eslint/eslintrc/universal"); // eslint-disable-line node/no-missing-require -- false positive
} = require("@eslint/eslintrc/universal");

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

@@ -24,7 +24,7 @@ const
ConfigValidator,
environments: BuiltInEnvironments
}
} = require("@eslint/eslintrc/universal"), // eslint-disable-line node/no-missing-require -- false positive
} = require("@eslint/eslintrc/universal"),
Traverser = require("../shared/traverser"),
{ SourceCode } = require("../source-code"),
CodePathAnalyzer = require("./code-path-analysis/code-path-analyzer"),
@@ -47,7 +47,7 @@
"homepage": "https://eslint.org",
"bugs": "https://github.com/eslint/eslint/issues/",
"dependencies": {
"@eslint/eslintrc": "^1.0.2",
"@eslint/eslintrc": "^1.0.3",
"@humanwhocodes/config-array": "^0.6.0",
"ajv": "^6.10.0",
"chalk": "^4.0.0",

0 comments on commit f9217e5

Please sign in to comment.