From e727a46b4859c8d48c73411d3ccb1c96b07ffd88 Mon Sep 17 00:00:00 2001 From: zengyishou Date: Thu, 30 Jul 2026 19:15:09 +0800 Subject: [PATCH] fix(worma): use LF line endings + remove apostrophe from generated JSDoc headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix endOfLine: 'auto' → 'lf' in prettier config (format.ts) The 'auto' option could produce CRLF on some platforms, breaking vue-tsc and TypeScript compilation of generated .ts files. - Replace the alova's vscode plugin → the alova team (https://alova.js.org) in all 5 preset comment.handlebars templates. The apostrophe character inside JSDoc comments was triggering TS lexer errors. Closes #180 --- .../template/presets/alova-globals/partials/comment.handlebars | 2 +- .../src/template/presets/alova/partials/comment.handlebars | 2 +- .../src/template/presets/axios/partials/comment.handlebars | 2 +- .../src/template/presets/fetch/partials/comment.handlebars | 2 +- .../worma/src/template/presets/ky/partials/comment.handlebars | 2 +- packages/worma/src/utils/format.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/worma/src/template/presets/alova-globals/partials/comment.handlebars b/packages/worma/src/template/presets/alova-globals/partials/comment.handlebars index 70d99fea..37c70789 100644 --- a/packages/worma/src/template/presets/alova-globals/partials/comment.handlebars +++ b/packages/worma/src/template/presets/alova-globals/partials/comment.handlebars @@ -11,7 +11,7 @@ * Contact: {{#contact.name}}[{{contact.name}}]{{/contact.name}}{{#contact.url}}{{{contact.url}}}{{/contact.url}}{{^contact.url}}{{{contact.email}}}{{/contact.url}} {{/contact}} * - * NOTE: This file is auto generated by the alova's vscode plugin. + * NOTE: This file is auto generated by the alova team (https://alova.js.org). * * https://alova.js.org/devtools/vscode * diff --git a/packages/worma/src/template/presets/alova/partials/comment.handlebars b/packages/worma/src/template/presets/alova/partials/comment.handlebars index bce0365a..8255815e 100644 --- a/packages/worma/src/template/presets/alova/partials/comment.handlebars +++ b/packages/worma/src/template/presets/alova/partials/comment.handlebars @@ -11,7 +11,7 @@ * Contact: {{#contact.name}}[{{contact.name}}]{{/contact.name}}{{#contact.url}}{{{contact.url}}}{{/contact.url}}{{^contact.url}}{{{contact.email}}}{{/contact.url}} {{/contact}} * - * NOTE: This file is auto generated by the alova's vscode plugin. + * NOTE: This file is auto generated by the alova team (https://alova.js.org). * * https://alova.js.org/devtools/vscode * diff --git a/packages/worma/src/template/presets/axios/partials/comment.handlebars b/packages/worma/src/template/presets/axios/partials/comment.handlebars index bce0365a..8255815e 100644 --- a/packages/worma/src/template/presets/axios/partials/comment.handlebars +++ b/packages/worma/src/template/presets/axios/partials/comment.handlebars @@ -11,7 +11,7 @@ * Contact: {{#contact.name}}[{{contact.name}}]{{/contact.name}}{{#contact.url}}{{{contact.url}}}{{/contact.url}}{{^contact.url}}{{{contact.email}}}{{/contact.url}} {{/contact}} * - * NOTE: This file is auto generated by the alova's vscode plugin. + * NOTE: This file is auto generated by the alova team (https://alova.js.org). * * https://alova.js.org/devtools/vscode * diff --git a/packages/worma/src/template/presets/fetch/partials/comment.handlebars b/packages/worma/src/template/presets/fetch/partials/comment.handlebars index bce0365a..8255815e 100644 --- a/packages/worma/src/template/presets/fetch/partials/comment.handlebars +++ b/packages/worma/src/template/presets/fetch/partials/comment.handlebars @@ -11,7 +11,7 @@ * Contact: {{#contact.name}}[{{contact.name}}]{{/contact.name}}{{#contact.url}}{{{contact.url}}}{{/contact.url}}{{^contact.url}}{{{contact.email}}}{{/contact.url}} {{/contact}} * - * NOTE: This file is auto generated by the alova's vscode plugin. + * NOTE: This file is auto generated by the alova team (https://alova.js.org). * * https://alova.js.org/devtools/vscode * diff --git a/packages/worma/src/template/presets/ky/partials/comment.handlebars b/packages/worma/src/template/presets/ky/partials/comment.handlebars index bce0365a..8255815e 100644 --- a/packages/worma/src/template/presets/ky/partials/comment.handlebars +++ b/packages/worma/src/template/presets/ky/partials/comment.handlebars @@ -11,7 +11,7 @@ * Contact: {{#contact.name}}[{{contact.name}}]{{/contact.name}}{{#contact.url}}{{{contact.url}}}{{/contact.url}}{{^contact.url}}{{{contact.email}}}{{/contact.url}} {{/contact}} * - * NOTE: This file is auto generated by the alova's vscode plugin. + * NOTE: This file is auto generated by the alova team (https://alova.js.org). * * https://alova.js.org/devtools/vscode * diff --git a/packages/worma/src/utils/format.ts b/packages/worma/src/utils/format.ts index 40245600..ebec0dfd 100644 --- a/packages/worma/src/utils/format.ts +++ b/packages/worma/src/utils/format.ts @@ -13,7 +13,7 @@ export const prettierConfig: PrettierConfig = { trailingComma: 'none', bracketSpacing: true, insertPragma: false, - endOfLine: 'auto', + endOfLine: 'lf', bracketSameLine: true, arrowParens: 'avoid', vueIndentScriptAndStyle: false,