Skip to content

Commit 1b69123

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 1b69123

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-plugin-eslint/generator

1 file changed

+1
-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
}

0 commit comments

Comments
 (0)