Skip to content

Commit 2465f11

Browse files
authored
chore: format & check with prettier (#5869)
1 parent 8bc76eb commit 2465f11

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,6 @@ jobs:
9191
9292
- name: Lint
9393
run: pnpm run lint
94+
95+
- name: Check formatting
96+
run: pnpm prettier --check .

packages/plugin-vue/src/main.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,7 @@ async function genScriptCode(
269269
scriptCode = compiler.rewriteDefault(
270270
script.content,
271271
'_sfc_main',
272-
script.lang === 'ts'
273-
? ['typescript']
274-
: undefined
272+
script.lang === 'ts' ? ['typescript'] : undefined
275273
)
276274
map = script.map
277275
} else {

0 commit comments

Comments
 (0)