Skip to content

Commit 8bce738

Browse files
committed
chore: fix errors
1 parent b659e60 commit 8bce738

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/utils.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ async function swcMinify(input, minimizerOptions = {}) {
167167
code: result.code,
168168
errors: result.errors
169169
? result.errors.map((diagnostic) => {
170-
const error = /** @type {Error & { span: any; level: any }} */ (new Error(diagnostic.message));
170+
// eslint-disable-next-line jsdoc/no-restricted-syntax
171+
const error = /** @type {Error & { span: any; level: any }} */ (
172+
new Error(diagnostic.message)
173+
);
171174

172175
error.span = diagnostic.span;
173176

@@ -208,7 +211,10 @@ async function swcMinifyFragment(input, minimizerOptions = {}) {
208211
code: result.code,
209212
errors: result.errors
210213
? result.errors.map((diagnostic) => {
211-
const error = /** @type {Error & { span: any; level: any }} */ (new Error(diagnostic.message));
214+
// eslint-disable-next-line jsdoc/no-restricted-syntax
215+
const error = /** @type {Error & { span: any; level: any }} */ (
216+
new Error(diagnostic.message)
217+
);
212218

213219
error.span = diagnostic.span;
214220

0 commit comments

Comments
 (0)