Skip to content

Commit

Permalink
Update lib/init/config-initializer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Jul 25, 2022
1 parent d33a6bf commit 0721b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init/config-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function processAnswers(answers) {
}

// if answers.source == "guide", the ts supports should be in the shared config.
if (answers.typescript && answers.source === "prompt") {
if (answers.typescript && answers.source !== "guide") {
config.parser = "@typescript-eslint/parser";

if (Array.isArray(config.plugins)) {
Expand Down

0 comments on commit 0721b85

Please sign in to comment.