Skip to content

feat: add complementary import-x rules to shared base config#602

Merged
André L. (WipeAir) merged 1 commit into
mainfrom
claude/import-x-rules-review
Apr 28, 2026
Merged

feat: add complementary import-x rules to shared base config#602
André L. (WipeAir) merged 1 commit into
mainfrom
claude/import-x-rules-review

Conversation

@WipeAir
Copy link
Copy Markdown
Member

Summary

Adds eight eslint-plugin-import-x rules to @abinnovision/eslint-config-base chosen to complement (not duplicate) the existing strict-TypeScript and unused-imports setup: no-duplicates, no-self-import, no-useless-path-segments, no-empty-named-blocks, no-mutable-exports, no-relative-packages (monorepo boundary discipline), consistent-type-specifier-style (prefer-top-level), and no-extraneous-dependencies with a dev-allowlist for tests/configs/scripts. The latter is explicitly disabled in flavour-vitest and flavour-config-files for consumers that overlay those configs on different file globs. Also refreshes the four pre-existing import rule doc URLs to point at the new un-ts/eslint-plugin-import-x repo.

Note: no-extraneous-dependencies may surface phantom-dependency warnings in downstream repos that weren't previously checked.

Test plan

  • yarn workspace @abinnovision/eslint-config-base build (rule keys/options type-check)
  • yarn turbo lint:check --force across the monorepo (all 4 packages clean)

Adds eight import-x rules that complement (rather than duplicate) the
existing strict-TypeScript and unused-imports setup:

- no-duplicates, no-self-import, no-useless-path-segments,
  no-empty-named-blocks, no-mutable-exports
- no-relative-packages (monorepo boundary discipline)
- consistent-type-specifier-style (prefer-top-level)
- no-extraneous-dependencies, with a devDependencies allowlist for
  tests, configs and scripts. Disabled in flavour-vitest and
  flavour-config-files for explicit overlays.

Also updates the four existing import rule doc URLs to point at the new
import-x repo.
@WipeAir André L. (WipeAir) force-pushed the claude/import-x-rules-review branch from 995f00a to 35252bc Compare April 28, 2026 10:50
@WipeAir André L. (WipeAir) merged commit 5e84da1 into main Apr 28, 2026
10 checks passed
@WipeAir André L. (WipeAir) deleted the claude/import-x-rules-review branch April 28, 2026 10:52
@abi-releaser abi-releaser Bot mentioned this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant