Skip to content

Commit e01dce0

Browse files
authored
fix(no-extraneous-dependencies): correct some Options type properties (#174)
1 parent acebd98 commit e01dce0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/witty-apples-chew.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-import-x": patch
3+
---
4+
5+
fix(no-extraneous-dependencies): correct some `Options` type properties

src/rules/no-extraneous-dependencies.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ function testConfig(config: string[] | boolean | undefined, filename: string) {
341341

342342
type Options = {
343343
packageDir?: string | string[]
344-
devDependencies?: boolean
345-
optionalDependencies?: boolean
346-
peerDependencies?: boolean
347-
bundledDependencies?: boolean
344+
devDependencies?: boolean | string[]
345+
optionalDependencies?: boolean | string[]
346+
peerDependencies?: boolean | string[]
347+
bundledDependencies?: boolean | string[]
348348
includeInternal?: boolean
349349
includeTypes?: boolean
350350
whitelist?: string[]

0 commit comments

Comments
 (0)