File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ export class ConfigGenerator {
126
126
}
127
127
}
128
128
129
- // eslint-disable-next-line jsdoc/require-throws -- ts is not supported yet
130
129
/**
131
130
* Calculate the configuration based on the user's answers.
132
131
* @returns {void }
@@ -179,11 +178,9 @@ export class ConfigGenerator {
179
178
180
179
181
180
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" ;
187
184
}
188
185
189
186
if ( this . answers . framework === "vue" ) {
You can’t perform that action at this time.
0 commit comments