Skip to content

chore(front): check dependencies with dependency-cruiser and knip, remove eslint-plugin-import (#8480) - #8618

Merged
Guillaume (guillaumejparis) merged 8 commits into
mainfrom
chore/front-depcruise
Oct 22, 2026
Merged

Guillaume (guillaumejparis) merged 8 commits into
mainfrom
chore/front-depcruise

Conversation

@guillaumejparis

@guillaumejparis Guillaume (guillaumejparis) commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Proposed changes

  • Add dependency-cruiser (yarn depcruise, .dependency-cruiser.ts) and knip (yarn knip --dependencies) to CI, and remove the 7 unused dependencies knip found.
  • Remove eslint-plugin-import and eslint-import-resolver-next: tsc, the Vite build, no-duplicate-imports, custom-rules/no-mutable-exports and dependency-cruiser cover its rules.
  • Rewrite the custom ESLint rules in TypeScript, run their tests in CI (yarn test:eslint-rules), and make classes-rule work again with tss-react; the 30 unused classes it found are removed.
  • Report unused eslint-disable directives and remove the 12 stale ones.
  • Add scripts/check-node-version.js, which names the required Node version instead of failing with ERR_UNKNOWN_FILE_EXTENSION.
  • Remove the legacy esbuild builder (builder/dev/*, builder/prod/prod.js) and the packages only it used.
  • Update Renovate, AGENTS.md, the Copilot instructions, the platform docs and the CI schema for the new checks.

Testing Instructions

  1. cd openaev-front && yarn install --immutable on Node 24.11 or later.
  2. yarn check-ts, yarn lint, yarn test:eslint-rules, yarn depcruise, yarn knip --dependencies, yarn i18n-checker and yarn build pass.

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality
  • For bug fix -> I implemented a test that covers the bug

Deployment

  • 🚀 Deploy this branch to a staging environment

Further comments

🤖 Generated with Claude Code

…8480)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

📖 Documentation check — ✅ Passed

60 functional file(s), 1 doc file(s) changed.

No documentation gaps detected.

@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.13%. Comparing base (68c2267) to head (9df86d7).

❌ Your project check has failed because the head coverage (13.96%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8618      +/-   ##
============================================
- Coverage     50.14%   50.13%   -0.01%     
+ Complexity    14115    14114       -1     
============================================
  Files          3183     3183              
  Lines        105797   105795       -2     
  Branches      17090    17090              
============================================
- Hits          53050    53040      -10     
- Misses        48592    48596       +4     
- Partials       4155     4159       +4     
Flag Coverage Δ
backend 72.57% <ø> (-0.01%) ⬇️
e2e 16.66% <ø> (-0.16%) ⬇️
frontend 13.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@guillaumejparis
Guillaume (guillaumejparis) marked this pull request as ready for review October 21, 2026 14:17
Copilot AI balanced review requested due to automatic review settings October 21, 2026 14:17
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The empty CI action prevents frontend validation, and the hook-renaming autofix can break shorthand property accesses.

1 open issue
What changed in this PR

This first part of the #8480 tooling migration replaces import-plugin checks with dependency-cruiser and modernizes OpenAEV’s custom ESLint rules.

Changes:

  • Adds dependency checks, a known-cycle baseline, and Node-version guidance.
  • Migrates custom rules to TypeScript with expanded tests.
  • Updates lint configuration, dependencies, and developer documentation.
File Description
renovate.json5 Groups local plugin dependency updates.
openaev-front/​yarn.lock Updates tooling dependencies.
openaev-front/​vite.config.ts Rejects undefined namespace imports.
openaev-front/​tsconfig.json Adjusts tooling type-check scope.
openaev-front/​tests_e2e/​fixtures/​baseFixtures.ts Removes obsolete lint suppression.
openaev-front/​scripts/​check-node-version.js Adds Node-version diagnostics.
openaev-front/​packages/​eslint-plugin-custom-rules/​tsconfig.json Configures plugin type checking.
openaev-front/​packages/​eslint-plugin-custom-rules/​tests/​rule-tester.ts Integrates RuleTester with node:test.
openaev-front/​packages/​eslint-plugin-custom-rules/​tests/​lib/​rules/​no-mutable-exports.test.ts Tests mutable-export detection.
openaev-front/​packages/​eslint-plugin-custom-rules/​tests/​lib/​rules/​classes-rule.test.ts Expands style-rule regression coverage.
openaev-front/​packages/​eslint-plugin-custom-rules/​tests/​lib/​rules/​classes-rule.test.js Removes legacy JavaScript tests.
openaev-front/​packages/​eslint-plugin-custom-rules/​package.json Exposes TypeScript plugin sources.
openaev-front/​packages/​eslint-plugin-custom-rules/​lib/​rules/​no-mutable-exports.ts Adds mutable-export rule.
openaev-front/​packages/​eslint-plugin-custom-rules/​lib/​rules/​classes-rule.ts Adds scope-aware tss-react analysis.
openaev-front/​packages/​eslint-plugin-custom-rules/​lib/​rules/​classes-rule.js Removes legacy rule implementation.
openaev-front/​packages/​eslint-plugin-custom-rules/​lib/​index.ts Registers rules and cache fingerprint.
openaev-front/​packages/​eslint-plugin-custom-rules/​lib/​index.js Removes legacy plugin entry point.
openaev-front/​package.json Adds tooling commands and dependencies.
openaev-front/​eslint.config.js Replaces import-plugin configuration.
openaev-front/​.dependency-cruiser.ts Defines dependency graph checks.
openaev-front/​.dependency-cruiser-known-violations.json Records the existing import cycle.
docs/​docs/​development/​platform.md Documents new validation commands.
AGENTS.md Lists new frontend checks.
.github/​instructions/​frontend.instructions.md Clarifies export conventions.
.github/​copilot-instructions.md Updates validation guidance.
.github/​ci-pipeline-schema.md Documents dependency-cruiser in CI.
.github/​ci-pipeline-schema.d2 Updates the CI diagram source.
.github/​agents/​frontend-reviewer.agent.md Adds export-review guidance.
.github/​actions/​frontend-quality/​action.yml Empties the frontend-quality action.
.claude/​skills/​review-code/​SKILL.md Adds dependency checking to review guidance.

Review effort: Balanced

@guillaumejparis Guillaume (guillaumejparis) changed the title chore(front): replace eslint-plugin-import with dependency-cruiser (#8480) chore(front): check dependencies with dependency-cruiser and knip, remove eslint-plugin-import (#8480) Oct 21, 2026
The classes-rule autofix rewrote every reference, so a shorthand property
or an exported object kept a different key than its readers expected.
Report the name without a fix unless each reference is a direct call.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The import-validation replacement and custom-rule rewrite require human confirmation of frontend CI results and IDE runtime compatibility.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

…rop leftovers (#8480)

Dependencies may read a namespace member they feature-detect, so IMPORT_IS_UNDEFINED
from node_modules no longer fails the build. Remove the @mui/lab restriction (the package
is gone) and the comment left over from the removed import/no-cycle disables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shells and editors started through fnm or nvm pick the Node version the tooling needs,
instead of failing the version check of the ESLint config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@guillaumejparis
Guillaume (guillaumejparis) merged commit 327ff9c into main Oct 22, 2026
103 of 105 checks passed
@guillaumejparis
Guillaume (guillaumejparis) deleted the chore/front-depcruise branch October 22, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

filigran team Item from the Filigran team. High risk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants