We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3439540 commit 3a21709Copy full SHA for 3a21709
modules/code-generator/src/postprocessor/prettier/index.ts
@@ -21,7 +21,7 @@ const factory: PostProcessorFactory<ProcessorConfig> = (config?: ProcessorConfig
21
const codePrettier: PostProcessor = (content: string, fileType: string) => {
22
let parser: prettier.BuiltInParserName | any;
23
if (fileType === 'js' || fileType === 'jsx' || fileType === 'ts' || fileType === 'tsx') {
24
- parser = 'babel';
+ parser = 'babel-ts';
25
} else if (fileType === 'json') {
26
parser = 'json-stringify';
27
} else if (PARSERS.indexOf(fileType) >= 0) {
0 commit comments