Skip to content

Commit 4d4d6c0

Browse files
committed
1 parent 0105b80 commit 4d4d6c0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/config-generator.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export class ConfigGenerator {
126126
}
127127
}
128128

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

180179

181180
if (this.answers.lang === "ts") {
182-
throw new Error("typescript is not supported yet.");
183-
184-
// this.result.devDependencies.push("@typescript-eslint/eslint-plugin");
185-
// importContent += "import pluginTs from \"@typescript-eslint/eslint-plugin\";\n";
186-
// exportContent += " pluginTs.configs.recommended,\n";
181+
this.result.devDependencies.push("typescript-eslint");
182+
importContent += "import tseslint from \"typescript-eslint\";\n";
183+
exportContent += " tseslint.configs.recommended,\n";
187184
}
188185

189186
if (this.answers.framework === "vue") {

0 commit comments

Comments
 (0)