Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 1, 2023
1 parent 66f2dff commit 5b99890
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const convert = () => {
debug: true,
plugins: ['jsx', 'typescript'],
}).code
} catch (err: any) {
result = err.toString()
} catch (error: any) {
result = error.toString()
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ export function transformJsxToString(
} else {
try {
str = transformJsx(code, node)
} catch (err: any) {
str = `(() => { throw new Error(${escapeString(err.toString())}) })()`
} catch (error: any) {
str = `(() => { throw new Error(${escapeString(error.toString())}) })()`
}
}
s.overwrite(expr.start!, expr.end!, str)
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default createUnplugin<Options>((options = {}) => {
...opt,
id,
})
} catch (err: unknown) {
this.error(`${name} ${err}`)
} catch (error: unknown) {
this.error(`${name} ${error}`)
}
},
}
Expand Down

0 comments on commit 5b99890

Please sign in to comment.