Skip to content

Lint: Report import cycles in the admin - #699

Merged
lehni merged 1 commit into
mainfrom
chore/lint-import-cycles
Oct 25, 2026
Merged

lehni merged 1 commit into
mainfrom
chore/lint-import-cycles

Conversation

@lehni

@lehni lehni commented Oct 25, 2026

Copy link
Copy Markdown
Contributor
  • Turn on import/no-cycle for packages/admin/src

Type-only imports don't count, and the rule doesn't read imports inside Vue files. Verified with temporary cycles: runtime cycles between .ts files are reported, cycles through import type aren't. pnpm run eslint goes from ~70 s to ~85 s.

Not included: linting all packages doubles the time (~150 s) and reports one existing runtime cycle in the server (query/index.js → QueryBuilder.js → graph/index.js → graph.js). Reading Vue imports (import/parsers) takes ~190 s and makes import/default fail on <script setup> components.

@lehni
lehni merged commit 33e4e3d into main Oct 25, 2026
8 checks passed
@lehni
lehni deleted the chore/lint-import-cycles branch October 25, 2026 00:30
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