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 d200e2d6d..15e23a44d 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 ee4d6ae42..34933de26 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 */)} ], },` } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy