]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix(eslint): remove comment from generated config (#578)
authorCédric Exbrayat <cexbrayat@users.noreply.github.com>
Fri, 11 Oct 2024 14:14:24 +0000 (16:14 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Oct 2024 14:14:24 +0000 (22:14 +0800)
scripts/build.mjs
utils/renderEslint.ts

index d200e2d6db4531966b4691f261e6d868b766f4f8..15e23a44dc084598b8030f696bf909608e406f3a 100644 (file)
@@ -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) => {
index ee4d6ae4283d5e69b0be3def9f520da80a109488..34933de26ab6e348a4b5da6f8262156ff9083fd2 100644 (file)
@@ -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 */)}
     ],
   },`
         }