From 10f9b17d9ec96c9d38085894710f041bdce5aa86 Mon Sep 17 00:00:00 2001
From: Anna Bocharova <robin_tail@me.com>
Date: Sun, 14 Jul 2024 17:13:12 +0200
Subject: [PATCH] Allow either import or import-x plugin as a peer dependency
 (#294)

* Allow either import or import-x plugin as a peer dependency

* Updating lock file.

* Add changeset.
---
 .changeset/purple-buttons-lay.md |  5 +++++
 package.json                     | 11 ++++++++++-
 yarn.lock                        |  6 ++++++
 3 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 .changeset/purple-buttons-lay.md

diff --git a/.changeset/purple-buttons-lay.md b/.changeset/purple-buttons-lay.md
new file mode 100644
index 0000000..c8618a1
--- /dev/null
+++ b/.changeset/purple-buttons-lay.md
@@ -0,0 +1,5 @@
+---
+'eslint-import-resolver-typescript': patch
+---
+
+Allow either eslint-plugin-import-x or eslint-plugin-import plugin as a peer dependency.
diff --git a/package.json b/package.json
index d9e4f9c..f3f988c 100644
--- a/package.json
+++ b/package.json
@@ -63,7 +63,16 @@
   },
   "peerDependencies": {
     "eslint": "*",
-    "eslint-plugin-import": "*"
+    "eslint-plugin-import": "*",
+    "eslint-plugin-import-x": "*"
+  },
+  "peerDependenciesMeta": {
+    "eslint-plugin-import": {
+      "optional": true
+    },
+    "eslint-plugin-import-x": {
+      "optional": true
+    }
   },
   "dependencies": {
     "debug": "^4.3.5",
diff --git a/yarn.lock b/yarn.lock
index eaa54e1..711e5eb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6145,6 +6145,12 @@ __metadata:
   peerDependencies:
     eslint: "*"
     eslint-plugin-import: "*"
+    eslint-plugin-import-x: "*"
+  peerDependenciesMeta:
+    eslint-plugin-import:
+      optional: true
+    eslint-plugin-import-x:
+      optional: true
   languageName: unknown
   linkType: soft