Skip to content

Commit 30cd132

Browse files
committed
fix: lint
1 parent 006e6a5 commit 30cd132

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default createUnplugin<Options | undefined, false>((rawOptions = {}) => {
3232
const program = babelParse(code, lang)
3333
const defaultExport = program.body.find(
3434
(node): node is t.ExportDefaultDeclaration =>
35-
node.type === 'ExportDefaultDeclaration'
35+
node.type === 'ExportDefaultDeclaration',
3636
)
3737
if (!defaultExport) return
3838

@@ -42,7 +42,7 @@ export default createUnplugin<Options | undefined, false>((rawOptions = {}) => {
4242
s.overwrite(
4343
defaultExport.start!,
4444
getNodeStart(defaultExport.declaration),
45-
`export const ${resolvedName} = `
45+
`export const ${resolvedName} = `,
4646
)
4747

4848
if (!options.removeDefault) {

src/volar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const plugin: VueLanguagePlugin = ({ vueCompilerOptions }) => {
1313
replace(
1414
embeddedFile.content,
1515
'export default ',
16-
`export const ${exportedName} = `
16+
`export const ${exportedName} = `,
1717
)
1818
else
1919
replace(embeddedFile.content, /export default .*/, (m) => {

tests/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ describe('fixtures', async () => {
2121
target: 'esnext',
2222
}),
2323
]),
24-
{ cwd: path.resolve(__dirname, '..'), promise: true }
24+
{ cwd: path.resolve(__dirname, '..'), promise: true },
2525
)
2626
})

0 commit comments

Comments
 (0)