From e01dce016565128d8a78e9cf92ef29aed4c4bb1c Mon Sep 17 00:00:00 2001 From: Marco Pasqualetti <24919330+marcalexiei@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:45:15 +0100 Subject: [PATCH] fix(no-extraneous-dependencies): correct some `Options` type properties (#174) --- .changeset/witty-apples-chew.md | 5 +++++ src/rules/no-extraneous-dependencies.ts | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/witty-apples-chew.md 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[]