diff --git a/.changeset/witty-apples-chew.md b/.changeset/witty-apples-chew.md new file mode 100644 index 000000000..3d9d1832a --- /dev/null +++ b/.changeset/witty-apples-chew.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-import-x": patch +--- + +fix(no-extraneous-dependencies): correct some `Options` type properties diff --git a/src/rules/no-extraneous-dependencies.ts b/src/rules/no-extraneous-dependencies.ts index 4046c4d6c..fff4459bf 100644 --- a/src/rules/no-extraneous-dependencies.ts +++ b/src/rules/no-extraneous-dependencies.ts @@ -341,10 +341,10 @@ function testConfig(config: string[] | boolean | undefined, filename: string) { type Options = { packageDir?: string | string[] - devDependencies?: boolean - optionalDependencies?: boolean - peerDependencies?: boolean - bundledDependencies?: boolean + devDependencies?: boolean | string[] + optionalDependencies?: boolean | string[] + peerDependencies?: boolean | string[] + bundledDependencies?: boolean | string[] includeInternal?: boolean includeTypes?: boolean whitelist?: string[]