Просмотр исходного кода

meta: fix missing line return in JS2TS script

Antoine du Hamel 1 год назад
Родитель
Сommit
2454d85a44
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      private/js2ts/index.mjs

+ 1 - 1
private/js2ts/index.mjs

@@ -100,7 +100,7 @@ for await (const dirent of dir) {
           // The following regex aims to capture all local package.json imports.
           /\nimport \w+ from ['"]..\/([^'"]+\/)*package.json['"]\n/g,
           (originalImport) =>
-            `// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n` +
+            `\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n` +
             `// @ts-ignore We don't want TS to generate types for the package.json${originalImport}`,
         ),
     )