Skip to content

Commit

Permalink
Fix: --init crash on question to upgrade/downgrade ESLint (fixes #13978
Browse files Browse the repository at this point in the history
…) (#13995)
  • Loading branch information
mdjermanovic authored Jan 15, 2021
1 parent 292b1c0 commit 179a910
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/init/config-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ function promptUser() {
{
type: "toggle",
name: "installESLint",
message(answers) {
message() {
const { answers } = this.state;
const verb = semver.ltr(answers.localESLintVersion, answers.requiredESLintVersionRange)
? "upgrade"
: "downgrade";
Expand Down

0 comments on commit 179a910

Please sign in to comment.