diff --git a/lib/config-generator.js b/lib/config-generator.js index 14bc58a..e4ce170 100644 --- a/lib/config-generator.js +++ b/lib/config-generator.js @@ -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} @@ -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") {