Skip to content

Commit

Permalink
fix(deps): update dependency eslint-plugin-import-x to v4.6.1 (#292)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency eslint-plugin-import-x to v4.6.1

* chore: Use new node resolver from `eslint-plugin-import-x`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bartosz <[email protected]>
  • Loading branch information
renovate[bot] and burtek authored Dec 23, 2024
1 parent 0f43640 commit 0527d5c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
7 changes: 2 additions & 5 deletions configs/base.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/* eslint-disable import-x/newline-after-import -- https://github.com/un-ts/eslint-plugin-import-x/issues/194 */
import js from '@eslint/js';
import stylisticPlugin from '@stylistic/eslint-plugin';
// @ts-expect-error -- no TS types
import legacyNodeImportResolver from 'eslint-import-resolver-node';
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
import importPlugin, { importXResolverCompat } from 'eslint-plugin-import-x';
import importPlugin from 'eslint-plugin-import-x';
import promise from 'eslint-plugin-promise';
import tseslint from 'typescript-eslint';

Expand All @@ -27,7 +24,7 @@ export function prepareConfig({ nextResolver = false } = {}) {
? {
'import-x/resolver-next': [
createTypeScriptImportResolver(),
importXResolverCompat(legacyNodeImportResolver, { extensions: allImportExtensions })
importPlugin.createNodeResolver({ extensions: allImportExtensions })
]
}
: {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
"@eslint/json": "0.9.0",
"@next/eslint-plugin-next": "~15.0.0 || ~15.1.0",
"@stylistic/eslint-plugin": "2.12.1",
"eslint-import-resolver-node": "^0.3.9",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-cypress": "4.1.0",
"eslint-plugin-import-x": "4.5.1",
"eslint-plugin-import-x": "4.6.1",
"eslint-plugin-jest": "28.10.0",
"eslint-plugin-jest-dom": "5.5.0",
"eslint-plugin-jsonc": "2.18.2",
Expand Down
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2101,16 +2101,17 @@ eslint-plugin-es-x@^7.8.0:
"@eslint-community/regexpp" "^4.11.0"
eslint-compat-utils "^0.5.1"

eslint-plugin-import-x@4.5.1:
version "4.5.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-import-x/-/eslint-plugin-import-x-4.5.1.tgz#07ea3e6053ca027d8c4568c3073f53c77020d6bf"
integrity sha512-Wyut9jDeHdfZSebiWRmmOYDBov33M0ZZ3x9J/lD1v4M3nBgMNC02XH6Kq271pMxJWqctVRCjA+X5AQJZ2FezoQ==
eslint-plugin-import-x@4.6.1:
version "4.6.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-import-x/-/eslint-plugin-import-x-4.6.1.tgz#2fdb9a25addd92247f5d9b198bfa654eeaea2f52"
integrity sha512-wluSUifMIb7UfwWXqx7Yx0lE/SGCcGXECLx/9bCmbY2nneLwvAZ4vkd1IXDjPKFvdcdUgr1BaRnaRpx3k2+Pfw==
dependencies:
"@types/doctrine" "^0.0.9"
"@typescript-eslint/scope-manager" "^8.1.0"
"@typescript-eslint/utils" "^8.1.0"
debug "^4.3.4"
doctrine "^3.0.0"
enhanced-resolve "^5.17.1"
eslint-import-resolver-node "^0.3.9"
get-tsconfig "^4.7.3"
is-glob "^4.0.3"
Expand Down

0 comments on commit 0527d5c

Please sign in to comment.