From 60a9fba2967200fcf1c00b6a7d403a5ef8fdc0e2 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 11 Oct 2024 15:32:59 +0200 Subject: [PATCH] fix(eslint): remove comment from generated config --- scripts/build.mjs | 1 - utils/renderEslint.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index d200e2d6..15e23a44 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -54,7 +54,6 @@ await esbuild.build({ { name: '@vue/create-eslint-config fix', setup(build) { - // The renderEjsFile.js module uses file system APIs therefore after bundling it will not work. // So we need to preprocess it to remove the file system APIs. build.onLoad({ filter: /@vue.create-eslint-config.renderEjsFile\.js$/ }, (args) => { diff --git a/utils/renderEslint.ts b/utils/renderEslint.ts index ee4d6ae4..34933de2 100644 --- a/utils/renderEslint.ts +++ b/utils/renderEslint.ts @@ -108,7 +108,7 @@ export function getAdditionalConfigs({ ] .map(JSON.stringify.bind(JSON)) .join(',\n ') - .replace(/"/g, "'")} // use single quotes as in the other configs + .replace(/"/g, "'" /* use single quotes as in the other configs */)} ], },` }