Repository navigation
chore(front): check dependencies with dependency-cruiser and knip, remove eslint-plugin-import (#8480) - #8618
Conversation
…8480) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
📖 Documentation check — ✅ Passed 60 functional file(s), 1 doc file(s) changed. No documentation gaps detected. |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 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
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>
…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>

Proposed changes
yarn depcruise,.dependency-cruiser.ts) and knip (yarn knip --dependencies) to CI, and remove the 7 unused dependencies knip found.eslint-plugin-importandeslint-import-resolver-next: tsc, the Vite build,no-duplicate-imports,custom-rules/no-mutable-exportsand dependency-cruiser cover its rules.yarn test:eslint-rules), and makeclasses-rulework again with tss-react; the 30 unused classes it found are removed.eslint-disabledirectives and remove the 12 stale ones.scripts/check-node-version.js, which names the required Node version instead of failing withERR_UNKNOWN_FILE_EXTENSION.builder/dev/*,builder/prod/prod.js) and the packages only it used.AGENTS.md, the Copilot instructions, the platform docs and the CI schema for the new checks.Testing Instructions
cd openaev-front && yarn install --immutableon Node 24.11 or later.yarn check-ts,yarn lint,yarn test:eslint-rules,yarn depcruise,yarn knip --dependencies,yarn i18n-checkerandyarn buildpass.Related issues
Checklist
Deployment
Further comments
🤖 Generated with Claude Code