Skip to content

Commit 05ac8ba

Browse files
authored
fix(eslint): remove comment from generated config (#578)
1 parent fec5871 commit 05ac8ba

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

scripts/build.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ await esbuild.build({
5454
{
5555
name: '@vue/create-eslint-config fix',
5656
setup(build) {
57-
5857
// The renderEjsFile.js module uses file system APIs therefore after bundling it will not work.
5958
// So we need to preprocess it to remove the file system APIs.
6059
build.onLoad({ filter: /@vue.create-eslint-config.renderEjsFile\.js$/ }, (args) => {

utils/renderEslint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function getAdditionalConfigs({
108108
]
109109
.map(JSON.stringify.bind(JSON))
110110
.join(',\n ')
111-
.replace(/"/g, "'")} // use single quotes as in the other configs
111+
.replace(/"/g, "'" /* use single quotes as in the other configs */)}
112112
],
113113
},`
114114
}

0 commit comments

Comments
 (0)