We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9855c52 commit 30b6873Copy full SHA for 30b6873
packages/@vue/cli-plugin-eslint/migrator/index.js
@@ -21,10 +21,11 @@ module.exports = async (api) => {
21
}
22
23
const localESLintMajor = semver.major(
24
- semver.maxSatisfying(
25
- ['4.99.0', '5.99.0', '6.99.0'],
26
- localESLintRange
27
- )
+ semver.maxSatisfying(['4.99.0', '5.99.0', '6.99.0'], localESLintRange) ||
+ // in case the user does not specify a typical caret range;
+ // it is used as **fallback** because the user may have not previously
+ // installed eslint yet, such as in the case that they are from v3.0.x
28
+ require('eslint/package.json').version
29
)
30
31
if (localESLintMajor === 6) {
0 commit comments