From 48e899b68b61ea4354c00b52235db04285842ba8 Mon Sep 17 00:00:00 2001 From: "bfra-me[bot]" <118100583+bfra-me[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 08:27:44 +0000 Subject: [PATCH] fix(deps): update dependency eslint-plugin-import-x to v4.5.0 --- packages/eslint-config/package.json | 2 +- packages/eslint-config/src/rules.d.ts | 92 +++++++++++++-------------- pnpm-lock.yaml | 11 ++-- 3 files changed, 53 insertions(+), 52 deletions(-) diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index e05d035a..109bba54 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -49,7 +49,7 @@ "eslint-config-flat-gitignore": "0.3.0", "eslint-flat-config-utils": "0.4.0", "eslint-plugin-command": "0.2.6", - "eslint-plugin-import-x": "4.4.3", + "eslint-plugin-import-x": "4.5.0", "eslint-plugin-jsdoc": "50.6.0", "eslint-plugin-perfectionist": "4.1.2", "eslint-plugin-unused-imports": "4.1.4", diff --git a/packages/eslint-config/src/rules.d.ts b/packages/eslint-config/src/rules.d.ts index 20c03b74..e89fe5cf 100644 --- a/packages/eslint-config/src/rules.d.ts +++ b/packages/eslint-config/src/rules.d.ts @@ -974,233 +974,233 @@ export interface Rules { 'implicit-arrow-linebreak'?: Linter.RuleEntry /** * Enforce or ban the use of inline type-only markers for named imports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/consistent-type-specifier-style.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md */ 'import-x/consistent-type-specifier-style'?: Linter.RuleEntry /** * Ensure a default export is present, given a default import. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/default.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/default.md */ 'import-x/default'?: Linter.RuleEntry<[]> /** * Enforce a leading comment with the webpackChunkName for dynamic imports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/dynamic-import-chunkname.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/dynamic-import-chunkname.md */ 'import-x/dynamic-import-chunkname'?: Linter.RuleEntry /** * Forbid any invalid exports, i.e. re-export of the same name. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/export.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/export.md */ 'import-x/export'?: Linter.RuleEntry<[]> /** * Ensure all exports appear after other statements. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/exports-last.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/exports-last.md */ 'import-x/exports-last'?: Linter.RuleEntry<[]> /** * Ensure consistent use of file extension within the import path. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/extensions.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/extensions.md */ 'import-x/extensions'?: Linter.RuleEntry /** * Ensure all imports appear before other statements. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/first.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/first.md */ 'import-x/first'?: Linter.RuleEntry /** * Prefer named exports to be grouped together in a single export declaration. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/group-exports.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/group-exports.md */ 'import-x/group-exports'?: Linter.RuleEntry<[]> /** * Replaced by `import-x/first`. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/imports-first.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/imports-first.md * @deprecated */ 'import-x/imports-first'?: Linter.RuleEntry /** * Enforce the maximum number of dependencies a module can have. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/max-dependencies.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/max-dependencies.md */ 'import-x/max-dependencies'?: Linter.RuleEntry /** * Ensure named imports correspond to a named export in the remote file. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/named.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/named.md */ 'import-x/named'?: Linter.RuleEntry /** * Ensure imported namespaces contain dereferenced properties as they are dereferenced. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/namespace.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/namespace.md */ 'import-x/namespace'?: Linter.RuleEntry /** * Enforce a newline after import statements. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/newline-after-import.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/newline-after-import.md */ 'import-x/newline-after-import'?: Linter.RuleEntry /** * Forbid import of modules using absolute paths. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-absolute-path.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-absolute-path.md */ 'import-x/no-absolute-path'?: Linter.RuleEntry /** * Forbid AMD `require` and `define` calls. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-amd.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-amd.md */ 'import-x/no-amd'?: Linter.RuleEntry<[]> /** * Forbid anonymous values as default exports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-anonymous-default-export.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-anonymous-default-export.md */ 'import-x/no-anonymous-default-export'?: Linter.RuleEntry /** * Forbid CommonJS `require` calls and `module.exports` or `exports.*`. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-commonjs.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-commonjs.md */ 'import-x/no-commonjs'?: Linter.RuleEntry /** * Forbid a module from importing a module with a dependency path back to itself. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-cycle.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-cycle.md */ 'import-x/no-cycle'?: Linter.RuleEntry /** * Forbid default exports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-default-export.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-default-export.md */ 'import-x/no-default-export'?: Linter.RuleEntry<[]> /** * Forbid imported names marked with `@deprecated` documentation tag. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-deprecated.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-deprecated.md */ 'import-x/no-deprecated'?: Linter.RuleEntry<[]> /** * Forbid repeated import of the same module in multiple places. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-duplicates.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-duplicates.md */ 'import-x/no-duplicates'?: Linter.RuleEntry /** * Forbid `require()` calls with expressions. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-dynamic-require.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-dynamic-require.md */ 'import-x/no-dynamic-require'?: Linter.RuleEntry /** * Forbid empty named import blocks. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-empty-named-blocks.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-empty-named-blocks.md */ 'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]> /** * Forbid the use of extraneous packages. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-extraneous-dependencies.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-extraneous-dependencies.md */ 'import-x/no-extraneous-dependencies'?: Linter.RuleEntry /** * Forbid import statements with CommonJS module.exports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-import-module-exports.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-import-module-exports.md */ 'import-x/no-import-module-exports'?: Linter.RuleEntry /** * Forbid importing the submodules of other modules. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-internal-modules.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-internal-modules.md */ 'import-x/no-internal-modules'?: Linter.RuleEntry /** * Forbid the use of mutable exports with `var` or `let`. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-mutable-exports.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-mutable-exports.md */ 'import-x/no-mutable-exports'?: Linter.RuleEntry<[]> /** * Forbid use of exported name as identifier of default export. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-as-default.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default.md */ 'import-x/no-named-as-default'?: Linter.RuleEntry<[]> /** * Forbid use of exported name as property of default export. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-as-default-member.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default-member.md */ 'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]> /** * Forbid named default exports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-default.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-default.md */ 'import-x/no-named-default'?: Linter.RuleEntry<[]> /** * Forbid named exports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-export.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-export.md */ 'import-x/no-named-export'?: Linter.RuleEntry<[]> /** * Forbid namespace (a.k.a. "wildcard" `*`) imports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-namespace.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-namespace.md */ 'import-x/no-namespace'?: Linter.RuleEntry /** * Forbid Node.js builtin modules. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-nodejs-modules.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-nodejs-modules.md */ 'import-x/no-nodejs-modules'?: Linter.RuleEntry /** * Forbid importing packages through relative paths. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-relative-packages.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-packages.md */ 'import-x/no-relative-packages'?: Linter.RuleEntry /** * Forbid importing modules from parent directories. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-relative-parent-imports.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-parent-imports.md */ 'import-x/no-relative-parent-imports'?: Linter.RuleEntry /** * Forbid importing a default export by a different name. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-rename-default.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-rename-default.md */ 'import-x/no-rename-default'?: Linter.RuleEntry /** * Enforce which files can be imported in a given folder. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-restricted-paths.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-restricted-paths.md */ 'import-x/no-restricted-paths'?: Linter.RuleEntry /** * Forbid a module from importing itself. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-self-import.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-self-import.md */ 'import-x/no-self-import'?: Linter.RuleEntry<[]> /** * Forbid unassigned imports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unassigned-import.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unassigned-import.md */ 'import-x/no-unassigned-import'?: Linter.RuleEntry /** * Ensure imports point to a file/module that can be resolved. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unresolved.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unresolved.md */ 'import-x/no-unresolved'?: Linter.RuleEntry /** * Forbid modules without exports, or exports without matching import in another module. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unused-modules.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unused-modules.md */ 'import-x/no-unused-modules'?: Linter.RuleEntry /** * Forbid unnecessary path segments in import and require statements. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-useless-path-segments.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-useless-path-segments.md */ 'import-x/no-useless-path-segments'?: Linter.RuleEntry /** * Forbid webpack loader syntax in imports. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-webpack-loader-syntax.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-webpack-loader-syntax.md */ 'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]> /** * Enforce a convention in module import order. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/order.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/order.md */ 'import-x/order'?: Linter.RuleEntry /** * Prefer a default export if module exports a single name or multiple names. - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/prefer-default-export.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/prefer-default-export.md */ 'import-x/prefer-default-export'?: Linter.RuleEntry /** * Forbid potentially ambiguous parse goal (`script` vs. `module`). - * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/unambiguous.md + * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/unambiguous.md */ 'import-x/unambiguous'?: Linter.RuleEntry<[]> /** diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2ea1999d..f3e139d9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -195,8 +195,8 @@ importers: specifier: 0.2.6 version: 0.2.6(eslint@9.16.0(jiti@2.4.1)) eslint-plugin-import-x: - specifier: 4.4.3 - version: 4.4.3(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2) + specifier: 4.5.0 + version: 4.5.0(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2) eslint-plugin-jsdoc: specifier: 50.6.0 version: 50.6.0(eslint@9.16.0(jiti@2.4.1)) @@ -2173,8 +2173,8 @@ packages: peerDependencies: eslint: '*' - eslint-plugin-import-x@4.4.3: - resolution: {integrity: sha512-QBprHvhLsfDhP++2T1NnjsOUt6bLDX3NMHaYwAB1FD3xmYTkdFH+HS1OamGhz28jLkRyIZa6UNAzTxbHnJwz5w==} + eslint-plugin-import-x@4.5.0: + resolution: {integrity: sha512-l0OTfnPF8RwmSXfjT75N8d6ZYLVrVYWpaGlgvVkVqFERCI5SyBfDP7QEMr3kt0zWi2sOa9EQ47clbdFsHkF83Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -6160,8 +6160,9 @@ snapshots: '@es-joy/jsdoccomment': 0.48.0 eslint: 9.16.0(jiti@2.4.1) - eslint-plugin-import-x@4.4.3(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2): + eslint-plugin-import-x@4.5.0(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2): dependencies: + '@typescript-eslint/scope-manager': 8.17.0 '@typescript-eslint/utils': 8.17.0(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2) debug: 4.3.7 doctrine: 3.0.0