From: Cédric Exbrayat Date: Fri, 11 Oct 2024 14:14:24 +0000 (+0200) Subject: fix(eslint): remove comment from generated config (#578) X-Git-Tag: v3.11.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05ac8ba1970832ee99cdaa316af033e40d40700a;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix(eslint): remove comment from generated config (#578) --- 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 */)} ], },` }