Skip to content

Commit

Permalink
feat: tseslint
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Feb 7, 2024
1 parent 0105b80 commit 4d4d6c0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/config-generator.js
Expand Up @@ -126,7 +126,6 @@ export class ConfigGenerator {
}
}

// eslint-disable-next-line jsdoc/require-throws -- ts is not supported yet
/**
* Calculate the configuration based on the user's answers.
* @returns {void}
Expand Down Expand Up @@ -179,11 +178,9 @@ export class ConfigGenerator {


if (this.answers.lang === "ts") {
throw new Error("typescript is not supported yet.");

// this.result.devDependencies.push("@typescript-eslint/eslint-plugin");
// importContent += "import pluginTs from \"@typescript-eslint/eslint-plugin\";\n";
// exportContent += " pluginTs.configs.recommended,\n";
this.result.devDependencies.push("typescript-eslint");
importContent += "import tseslint from \"typescript-eslint\";\n";
exportContent += " tseslint.configs.recommended,\n";
}

if (this.answers.framework === "vue") {
Expand Down

0 comments on commit 4d4d6c0

Please sign in to comment.