Skip to content

Commit

Permalink
Upgrade: @eslint/eslintrc@1.0.3 for Jest workaround (#15164)
Browse files Browse the repository at this point in the history
* 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 f9217e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/linter/config-comment-parser.js
Expand Up @@ -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");

Expand Down
2 changes: 1 addition & 1 deletion lib/linter/linter.js
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit f9217e5

Please sign in to comment.