Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: specify @babel/eslint-parser deps #13420

Merged
merged 1 commit into from Jun 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint/babel-eslint-shared-fixtures/package.json
Expand Up @@ -5,6 +5,7 @@
"private": true,
"dependencies": {
"@babel/core": "workspace:^7.12.13",
"@babel/eslint-parser": "workspace:*",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a private package serving as a hub of common test dependencies, so we can specify workspace:* here.

"@babel/plugin-proposal-class-properties": "workspace:^7.12.13",
"@babel/plugin-proposal-decorators": "workspace:^7.12.13",
"@babel/plugin-proposal-do-expressions": "workspace:^7.12.13",
Expand Down
7 changes: 2 additions & 5 deletions eslint/babel-eslint-shared-fixtures/utils/RuleTester.js
@@ -1,15 +1,12 @@
const path = require("path");
const { RuleTester } = require("eslint");

RuleTester.setDefaultConfig({
parser: require.resolve("../../babel-eslint-parser"),
parser: require.resolve("@babel/eslint-parser"),
parserOptions: {
sourceType: "module",
ecmaVersion: 11,
babelOptions: {
configFile: require.resolve(
path.join(__dirname, "../config/babel.config.js")
),
configFile: require.resolve("../config/babel.config.js"),
},
},
});
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Expand Up @@ -294,6 +294,7 @@ __metadata:
resolution: "@babel/eslint-shared-fixtures@workspace:eslint/babel-eslint-shared-fixtures"
dependencies:
"@babel/core": "workspace:^7.12.13"
"@babel/eslint-parser": "workspace:*"
"@babel/plugin-proposal-class-properties": "workspace:^7.12.13"
"@babel/plugin-proposal-decorators": "workspace:^7.12.13"
"@babel/plugin-proposal-do-expressions": "workspace:^7.12.13"
Expand Down