Skip to content

Commit 353edaa

Browse files
committed
fix: also add babel-eslint to the generated package.json
In case babel-eslint is not hoisted. This may happen in yarn, due to the following bugs: - yarnpkg/yarn#5807 - yarnpkg/yarn#5823
1 parent c138c7d commit 353edaa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/@vue/cli-plugin-eslint/generator/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = (api, { config, lintOn = [] }, _, invoking) => {
1818
// Now in v3 we have to add redundant eslint related dependencies
1919
// in order to keep compatibility with v3.0.x users who defaults to ESlint v4.
2020
devDependencies: {
21+
'babel-eslint': '^10.0.1',
2122
'eslint': '^5.8.0',
2223
'eslint-plugin-vue': '^5.0.0-0'
2324
}

packages/@vue/cli-service-global/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@vue/cli-plugin-babel": "^3.1.0",
2626
"@vue/cli-plugin-eslint": "^3.1.0",
2727
"@vue/cli-service": "^3.1.0",
28+
"babel-eslint": "^10.0.1",
2829
"chalk": "^2.4.1",
2930
"eslint": "^5.8.0",
3031
"eslint-plugin-vue": "^5.0.0-0",

0 commit comments

Comments
 (0)