From 32c75a99c3f8616e3f01b2a849d2724d11f7a8fe Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Thu, 1 Jun 2023 11:35:25 +0200 Subject: [PATCH] fix(import): fix occasional error when using import/default - See import-js/eslint-plugin-import#2447 --- packages/eslint-config-import/package.json | 3 +- yarn.lock | 57 +++++++++------------- 2 files changed, 24 insertions(+), 36 deletions(-) diff --git a/packages/eslint-config-import/package.json b/packages/eslint-config-import/package.json index 2dcbccf..8e25a2d 100644 --- a/packages/eslint-config-import/package.json +++ b/packages/eslint-config-import/package.json @@ -17,7 +17,8 @@ "clean": "run ws:clean \"$(pwd)\"" }, "dependencies": { - "eslint-plugin-import": "^2.27.5" + "eslint-plugin-i": "^2.27.5-1", + "eslint-plugin-import": "npm:eslint-plugin-i@^2.27.5-1" }, "peerDependencies": { "eslint": "*" diff --git a/yarn.lock b/yarn.lock index 51ca4b6..93b6c3a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -479,7 +479,8 @@ __metadata: version: 0.0.0-use.local resolution: "@myparcel-eslint/eslint-config-import@workspace:packages/eslint-config-import" dependencies: - eslint-plugin-import: ^2.27.5 + eslint-plugin-i: ^2.27.5-1 + eslint-plugin-import: "npm:eslint-plugin-i@^2.27.5-1" peerDependencies: eslint: "*" languageName: unknown @@ -1055,13 +1056,6 @@ __metadata: languageName: node linkType: hard -"@types/json5@npm:^0.0.29": - version: 0.0.29 - resolution: "@types/json5@npm:0.0.29" - checksum: e60b153664572116dfea673c5bda7778dbff150498f44f998e34b5886d8afc47f16799280e4b6e241c0472aef1bc36add771c569c68fc5125fc2ae519a3eb9ac - languageName: node - linkType: hard - "@types/keyv@npm:^3.1.4": version: 3.1.4 resolution: "@types/keyv@npm:3.1.4" @@ -3277,9 +3271,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.27.5": +"eslint-plugin-i@npm:^2.27.5-1, eslint-plugin-import@npm:eslint-plugin-i@^2.27.5-1": version: 2.27.5 - resolution: "eslint-plugin-import@npm:2.27.5" + resolution: "eslint-plugin-i@npm:2.27.5" dependencies: array-includes: ^3.1.6 array.prototype.flat: ^1.3.1 @@ -3288,6 +3282,7 @@ __metadata: doctrine: ^2.1.0 eslint-import-resolver-node: ^0.3.7 eslint-module-utils: ^2.7.4 + get-tsconfig: ^4.2.0 has: ^1.0.3 is-core-module: ^2.11.0 is-glob: ^4.0.3 @@ -3295,10 +3290,9 @@ __metadata: object.values: ^1.1.6 resolve: ^1.22.1 semver: ^6.3.0 - tsconfig-paths: ^3.14.1 peerDependencies: eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - checksum: f500571a380167e25d72a4d925ef9a7aae8899eada57653e5f3051ec3d3c16d08271fcefe41a30a9a2f4fefc232f066253673ee4ea77b30dba65ae173dade85d + checksum: 64b0c6400be15709ed87eab2af7f67569adead44420c994634efe3e2f31794d9fd81ddfcbce5dc7174621d789234f57583025a9852e377c62002053cc0ee4066 languageName: node linkType: hard @@ -3945,6 +3939,15 @@ __metadata: languageName: node linkType: hard +"get-tsconfig@npm:^4.2.0": + version: 4.6.0 + resolution: "get-tsconfig@npm:4.6.0" + dependencies: + resolve-pkg-maps: ^1.0.0 + checksum: fd2589a50e21543cf416285e5c4ac605359f49209b6c2e66bb8698fac907356e060de0a681e40881f00182b6f19771377411a88adcc78fd3954732ff54f4a54d + languageName: node + linkType: hard + "git-up@npm:^7.0.0": version: 7.0.0 resolution: "git-up@npm:7.0.0" @@ -4974,17 +4977,6 @@ __metadata: languageName: node linkType: hard -"json5@npm:^1.0.2": - version: 1.0.2 - resolution: "json5@npm:1.0.2" - dependencies: - minimist: ^1.2.0 - bin: - json5: lib/cli.js - checksum: 866458a8c58a95a49bef3adba929c625e82532bcff1fe93f01d29cb02cac7c3fe1f4b79951b7792c2da9de0b32871a8401a6e3c5b36778ad852bf5b8a61165d7 - languageName: node - linkType: hard - "json5@npm:^2.2.2": version: 2.2.3 resolution: "json5@npm:2.2.3" @@ -6669,6 +6661,13 @@ __metadata: languageName: node linkType: hard +"resolve-pkg-maps@npm:^1.0.0": + version: 1.0.0 + resolution: "resolve-pkg-maps@npm:1.0.0" + checksum: 1012afc566b3fdb190a6309cc37ef3b2dcc35dff5fa6683a9d00cd25c3247edfbc4691b91078c97adc82a29b77a2660c30d791d65dab4fc78bfc473f60289977 + languageName: node + linkType: hard + "resolve@npm:^1.10.0, resolve@npm:^1.20.0": version: 1.22.1 resolution: "resolve@npm:1.22.1" @@ -7524,18 +7523,6 @@ __metadata: languageName: node linkType: hard -"tsconfig-paths@npm:^3.14.1": - version: 3.14.2 - resolution: "tsconfig-paths@npm:3.14.2" - dependencies: - "@types/json5": ^0.0.29 - json5: ^1.0.2 - minimist: ^1.2.6 - strip-bom: ^3.0.0 - checksum: a6162eaa1aed680537f93621b82399c7856afd10ec299867b13a0675e981acac4e0ec00896860480efc59fc10fd0b16fdc928c0b885865b52be62cadac692447 - languageName: node - linkType: hard - "tsconfig-paths@npm:^4.1.2": version: 4.1.2 resolution: "tsconfig-paths@npm:4.1.2"