Skip to content

Commit 5b99890

Browse files
committed
style: fix lint
1 parent 66f2dff commit 5b99890

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

playground/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const convert = () => {
2828
debug: true,
2929
plugins: ['jsx', 'typescript'],
3030
}).code
31-
} catch (err: any) {
32-
result = err.toString()
31+
} catch (error: any) {
32+
result = error.toString()
3333
}
3434
}
3535

src/core/convert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ export function transformJsxToString(
457457
} else {
458458
try {
459459
str = transformJsx(code, node)
460-
} catch (err: any) {
461-
str = `(() => { throw new Error(${escapeString(err.toString())}) })()`
460+
} catch (error: any) {
461+
str = `(() => { throw new Error(${escapeString(error.toString())}) })()`
462462
}
463463
}
464464
s.overwrite(expr.start!, expr.end!, str)

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default createUnplugin<Options>((options = {}) => {
2727
...opt,
2828
id,
2929
})
30-
} catch (err: unknown) {
31-
this.error(`${name} ${err}`)
30+
} catch (error: unknown) {
31+
this.error(`${name} ${error}`)
3232
}
3333
},
3434
}

0 commit comments

Comments
 (0)