Skip to content

Commit 5cd5153

Browse files
committed
chore: fix lint
1 parent ae0648f commit 5cd5153

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
},
112112
"prettier": "@sxzz/prettier-config",
113113
"resolutions": {
114-
"unplugin-isolated-decl": "-",
115-
"@changesets/cli": "-"
114+
"@changesets/cli": "-",
115+
"unplugin-isolated-decl": "-"
116116
}
117117
}

src/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,9 @@ export const IsolatedDecl: UnpluginInstance<Options | undefined, false> =
342342

343343
const entries = esbuildOptions.entryPoints
344344
if (
345-
!(
346-
entries &&
347-
Array.isArray(entries) &&
348-
entries.every((entry) => typeof entry === 'string')
349-
)
345+
!entries ||
346+
!Array.isArray(entries) ||
347+
!entries.every((entry) => typeof entry === 'string')
350348
)
351349
throw new Error('unsupported entryPoints, must be an string[]')
352350

0 commit comments

Comments
 (0)