Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 13, 2024
1 parent 1e18906 commit 548d9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/stages/update-vscode-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function updateVscodeSettings(result: PromtResult) {
else {
let settingsContent = await fsp.readFile(settingsPath, 'utf8')

settingsContent = settingsContent.trim().replace(/\s*}$/, '')
settingsContent = settingsContent.trim().replace(/\s*\}$/, '')
settingsContent += settingsContent.endsWith(',') || settingsContent.endsWith('{') ? '' : ','
settingsContent += `${vscodeSettingsString}}\n`

Expand Down

0 comments on commit 548d9db

Please sign in to comment.