Skip to content

Commit

Permalink
chore: format & check with prettier (#5869)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff committed Nov 28, 2021
1 parent 8bc76eb commit 2465f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -91,3 +91,6 @@ jobs:
- name: Lint
run: pnpm run lint

- name: Check formatting
run: pnpm prettier --check .
4 changes: 1 addition & 3 deletions packages/plugin-vue/src/main.ts
Expand Up @@ -269,9 +269,7 @@ async function genScriptCode(
scriptCode = compiler.rewriteDefault(
script.content,
'_sfc_main',
script.lang === 'ts'
? ['typescript']
: undefined
script.lang === 'ts' ? ['typescript'] : undefined
)
map = script.map
} else {
Expand Down

0 comments on commit 2465f11

Please sign in to comment.