Repository navigation
chore(front): check dependencies with dependency-cruiser and knip, remove eslint-plugin-import (#8480) - #8458
Guillaume (guillaumejparis) wants to merge 27 commits into
Conversation
|
📖 Documentation check — ✅ Passed 60 functional file(s), 1 doc file(s) changed. No documentation gaps detected. |
c528d35 to
1847be1
Compare
eslint-plugin-react's 'detect' setting calls context.getFilename(), which ESLint 10 removed, so every react rule would crash. Pin the version to the installed React (19.3) until the plugin supports ESLint 10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nment ESLint 10 adds no-useless-assignment to js.configs.recommended. Remove initial values that are always overwritten before being read, and the final post-increment of the tab index that is never read again. The select choices get an explicit Item[] type instead of the implicit any[] of the dropped empty-array initializer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The RuleTester only accepts flat config, so the eslintrc-style parser and parserOptions keys made the test throw before running any case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add dependency-cruiser and a `yarn depcruise` script, run in the frontend quality CI step right after ESLint. .dependency-cruiser.cjs checks: - no-circular: import cycles; - not-to-dev-dep: devDependencies imported outside tests and tooling; - no-non-package-json: packages used without being declared; - not-to-unresolvable: imports that resolve to nothing; - not-to-test: production code importing unit or e2e test code. The transpiled code is analysed (tsPreCompilationDeps: false), so only imports that exist at runtime count, including a default import that shares its statement with type specifiers. Tooling files (Vite, Vitest, Playwright and ESLint configs, builder and scripts) are cruised too. The pre-existing TextFieldAskAI <-> SimpleRichTextField cycle is kept in .dependency-cruiser-known-violations.json and ignored; any new violation fails the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add knip with a knip.ts config and a `yarn knip` script. The frontend quality CI step runs `yarn knip --dependencies`: the wider report (unused files and exports) still has a large pre-existing backlog, so only declaration drift is enforced for now. Fix the drift it reports: - remove dependencies nothing imports: @mui/lab, @mui/system, classcat, d3-hierarchy, js-file-download, @types/d3-hierarchy and @typescript-eslint/utils (@mui/system and classcat stay installed through @mui/material and @xyflow/react); - declare @typescript-eslint/parser in the custom ESLint rules package, whose tests use it; - `yarn control` called `yarn audit`, which Yarn 4 no longer has: use `yarn npm audit --recursive --environment production`. i18n-auto-translation (run from a command string in auto-translate.js) and the Windows `start` built-in are ignored in knip.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The RuleTester suites of eslint-plugin-custom-rules were not run anywhere. Add a `yarn test:eslint-rules` script that runs them with the Node test runner, and call it in the frontend quality CI step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every check eslint-plugin-import ran for us now has another owner, so remove it together with eslint-import-resolver-next (and its native unrs-resolver binaries and their postinstall script): - no-cycle and no-extraneous-dependencies: dependency-cruiser (no-circular, not-to-dev-dep, no-non-package-json) and knip; - no-unresolved: tsc, dependency-cruiser (not-to-unresolvable) and the Vite build; - default and export: tsc for TypeScript files, the Vite build (MISSING_EXPORT) for JavaScript files; - namespace: tsc for TypeScript files; the Vite build now fails on IMPORT_IS_UNDEFINED, which covers JavaScript files; - no-duplicates: core no-duplicate-imports with allowSeparateTypeImports, which also catches an inline `type` import split from the value import of the same module (7 merged); - no-mutable-exports: custom-rules/no-mutable-exports in the local ESLint plugin, with RuleTester tests; - prefer-default-export: dropped, the convention is documented in the frontend instructions; - no-named-as-default: dropped; its only two hits were suppressed false positives (dompurify exports the same instance as default and named). All eslint-disable comments for import/* rules are removed, and `yarn lint` no longer needs its --rule override. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set linterOptions.reportUnusedDisableDirectives to 'error' so a directive that no longer suppresses anything fails `yarn lint`, and remove the 12 it reports: - 10 react/no-array-index-key and react/no-danger directives: neither rule is enabled; - @typescript-eslint/naming-convention in network.ts: the rule only checks variables; - @typescript-eslint/ban-ts-comment in Charts.ts: the @ts-expect-error it guards has a description, which the rule allows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1847be1 to
d3034ef
Compare
…t in step with react eslint.config.js pins settings.react.version because eslint-plugin-react cannot detect it on ESLint 10. A regex custom manager tracks that pin as the react npm package, at major.minor precision, so Renovate updates it together with react: minors in the weekly front-end batch, majors in the react monorepo group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into chore/front-dependency-cruiser
…y-cruiser # Conflicts: # openaev-front/eslint.config.js # openaev-front/yarn.lock
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (72.33%) 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 #8458 +/- ##
============================================
- Coverage 49.97% 49.97% -0.01%
Complexity 14009 14009
============================================
Files 3173 3173
Lines 105552 105550 -2
Branches 17048 17048
============================================
- Hits 52750 52747 -3
- Misses 48630 48631 +1
Partials 4172 4172
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:
|
These classes are defined in tss-react makeStyles hooks but never read from `classes`, so they only add dead CSS. Found by the classes-rule once it understands the curried tss-react form, removed by its autofix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
classes-rule only matched the @mui/styles `makeStyles(fn)` form, while every component uses the curried tss-react `makeStyles()(fn)`, so it never reported anything (and its autofix threw on single-line styles). It now finds makeStyles through its tss-react import and follows the hook's calls and `classes` reads with scope analysis instead of searching the source text. It handles renamed and nested destructuring, hooks called in place and the `classes` parameter of the styles function, and skips exported hooks and reads it cannot resolve statically. Its rename fix updates every call, and the rule is now an error. The plugin is written in TypeScript and run as is by Node type stripping: rules use RuleCreator from @typescript-eslint/utils, tests use @typescript-eslint/rule-tester on node:test, and the package has its own tsconfig, checked by `yarn check-ts`. It exposes plugin meta and a recommended config used by eslint.config.js, and drops requireindex. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`yarn start` and `yarn build` run Vite. The esbuild dev server and build scripts in builder/ were only reachable through the deprecated-start and deprecated-build scripts, which nothing calls, so remove them together with the packages only they used: chokidar, esbuild, express, fs-extra and http-proxy-middleware. builder/prod/build stays the Vite output directory that the backend packaging, Dockerfiles and CI read; builder/prod/.keep keeps its parent in the repository, since Vite empties the build directory itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dependency-cruiser loads its config through a dynamic import and accepts a .ts file, which Node runs by stripping the types. The config now exports an object checked against IConfiguration, and the ESLint block for CommonJS files, which only covered this config, is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Offer the removal of an unused class as a suggestion instead of an autofix: with fix on save, a class added before its first use was deleted. - Only require the `useStyles` name when the module keeps a single local hook: with two, both were renamed to `useStyles` in the same pass. - Bail out when the `classes` parameter of the styles function is destructured, or when `classes` is taken through a computed key: their reads were missed and the classes reported as unused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ESLint plugin and the dependency-cruiser config are TypeScript run by Node type stripping. Yarn does not enforce `engines`, so on an older Node `yarn lint`, the IDE ESLint integration and `yarn depcruise` failed with ERR_UNKNOWN_FILE_EXTENSION. scripts/check-node-version.js checks Node against the `engines` range and names the required version instead. eslint.config.js runs it before importing the plugin (a static import would fail before any check runs), and the depcruise script runs it first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Lint packages/: the TypeScript ESLint plugin was excluded with the rest of the folder, and its style is fixed. - Add .dependency-cruiser.ts to the root tsconfig, whose default "**/*" skips dot files, so that its `satisfies IConfiguration` is checked by `yarn check-ts`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ESLint's cache identifies a plugin by its name and version only, so editing a rule of eslint-plugin-custom-rules without a version bump left `yarn lint` reporting the cached results of unchanged files, and CI could fail on errors not seen locally. The plugin version now carries a hash of its sources. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop http-proxy-middleware from the parsers and HTTP clients rule: the front no longer depends on it. - Put the dependencies of the local ESLint plugin in the devDependencies batch: they are declared as dependencies of its package, so the front production batch took @typescript-eslint/utils apart from typescript-eslint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- List `yarn test:eslint-rules` with the other front checks, and in the CI steps of the frontend quality job. - Bring the pipeline diagram in line with ci-pipeline-schema.md (the frontend quality job also runs dependency-cruiser and knip). - Add the export conventions of frontend.instructions.md to the frontend reviewer agent, as the agent maintenance rule requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The hook-renaming autofix can change shorthand object keys and break callers.
1 open finding
What changed in this PR
Replaces frontend import linting with dependency-cruiser and knip as the second stage of #8480, following ESLint 10 and preceding Rules of Hooks enforcement.
Changes:
- Adds dependency checks and custom-rule tests to CI.
- Migrates custom ESLint rules to TypeScript and removes unused styles, dependencies, and legacy builders.
- Updates tooling documentation and export conventions.
praise: Custom-rule tests now run in CI, and unused-class removal remains an explicit suggestion rather than an automatic edit.
| File | Description |
|---|---|
| renovate.json5 | Groups plugin dependencies and removes obsolete package entry. |
| openaev-front/vite.config.ts | Rejects undefined namespace imports during builds. |
| openaev-front/tsconfig.json | Adjusts tooling inclusion and exclusions. |
| openaev-front/tests_e2e/fixtures/baseFixtures.ts | Removes obsolete suppression. |
| openaev-front/src/utils/tint.ts | Removes obsolete suppression. |
| openaev-front/src/utils/kill_chain_phases/kill_chain_phases.ts | Removes obsolete suppression. |
| openaev-front/src/utils/importResultNotifier.ts | Removes obsolete suppression. |
| openaev-front/src/utils/hooks.ts | Removes obsolete suppression. |
| openaev-front/src/utils/Charts.ts | Removes stale suppression. |
| openaev-front/src/utils/attack_patterns/attack_patterns.ts | Removes obsolete suppression. |
| openaev-front/src/utils/ai/ResponseDialog.tsx | Removes cycle suppressions. |
| openaev-front/src/public/components/systembanners/utils.ts | Removes obsolete suppression. |
| openaev-front/src/public/components/phishing/PhishingPage.tsx | Removes stale suppression. |
| openaev-front/src/network.ts | Removes suppressions and compacts interface formatting. |
| openaev-front/src/components/fields/TagFieldSingle.tsx | Removes unused style. |
| openaev-front/src/components/fields/TagField.tsx | Removes unused style. |
| openaev-front/src/components/fields/SimpleRichTextField.jsx | Removes cycle suppression. |
| openaev-front/src/components/fields/SecurityPlatformField.tsx | Removes unused style. |
| openaev-front/src/components/fields/PlatformFieldController.tsx | Removes unused style. |
| openaev-front/src/components/fields/OrganizationFieldController.tsx | Removes unused style. |
| openaev-front/src/components/fields/OldRichTextField.jsx | Removes cycle suppression. |
| openaev-front/src/components/fields/DocumentField.tsx | Removes unused style. |
| openaev-front/src/components/fields/AttackPatternFieldController.tsx | Removes unused style. |
| openaev-front/src/components/Error.tsx | Removes obsolete suppression. |
| openaev-front/src/components/common/queryable/filter/constants.ts | Removes obsolete suppression. |
| openaev-front/src/components/common/menu/navbar/AppNavbar.tsx | Removes stale suppression. |
| openaev-front/src/components/common/DialogConfirmation.tsx | Merges React imports. |
| openaev-front/src/components/common/detail/detailStyles.ts | Removes obsolete suppression. |
| openaev-front/src/components/AppIntlProvider.tsx | Retargets existing mutable-export suppression. |
| openaev-front/src/admin/components/xtm_hub/dialog/connectivity-lost/DialogConnectivityLost.types.ts | Removes obsolete suppression. |
| openaev-front/src/admin/components/workspaces/custom_dashboards/widgets/configuration/WidgetSeriesSelection.tsx | Removes unused styles. |
| openaev-front/src/admin/components/threat_arsenal/utils/useSnapshotRemediation.tsx | Removes obsolete suppression. |
| openaev-front/src/admin/components/threat_arsenal/bulk/ThreatArsenalScenarioUpdateComponent.tsx | Removes stale suppression. |
| openaev-front/src/admin/components/teams/utils.ts | Removes obsolete suppression. |
| openaev-front/src/admin/components/simulations/simulation/validation/expectations/ManualExpectationsValidationForm.tsx | Removes unused style. |
| openaev-front/src/admin/components/simulations/simulation/validation/expectations/ManualExpectations.tsx | Removes unused styles. |
| openaev-front/src/admin/components/simulations/simulation/attack_path/ExecutionResultTerminalPanel.tsx | Removes obsolete suppressions. |
| openaev-front/src/admin/components/simulations/simulation/attack_path/canvas/AttackPathMiniMap.tsx | Removes stale suppression. |
| openaev-front/src/admin/components/settings/notifiers/Notifiers.tsx | Removes unused style. |
| openaev-front/src/admin/components/settings/notifiers/NotifierForm.tsx | Removes stale suppression. |
| openaev-front/src/admin/components/scenarios/scenario/scenario_assistant/AttackPatternAIAssistantDialog.tsx | Removes unused style. |
| openaev-front/src/admin/components/scenarios/constants.ts | Removes obsolete suppression. |
| openaev-front/src/admin/components/reporting/render/ReportingRenderPage.tsx | Removes stale suppressions. |
| openaev-front/src/admin/components/reporting/render/modules/FindingsModule.tsx | Removes stale suppression. |
| openaev-front/src/admin/components/reporting/render/modules/FailedExpectationsModule.tsx | Removes stale suppression. |
| openaev-front/src/admin/components/profile/triggers/TriggerChips.tsx | Removes unused styles. |
| openaev-front/src/admin/components/platform/tenants/tenants.queryable.ts | Merges React imports. |
| openaev-front/src/admin/components/payloads/utils/payloadFormToPayloadInput.tsx | Removes obsolete suppression. |
| openaev-front/src/admin/components/lessons/categories/questions/CreateLessonsQuestion.jsx | Removes unused style. |
| openaev-front/src/admin/components/integrations/injectors/InjectorContracts.jsx | Removes unused style. |
| openaev-front/src/admin/components/components/documents/Documents.tsx | Removes unused styles. |
| openaev-front/src/admin/components/components/challenges/Challenges.tsx | Removes unused style. |
| openaev-front/src/admin/components/common/injects/Injects.tsx | Removes unused styles. |
| openaev-front/src/admin/components/common/form/TextFieldAskAI.tsx | Removes cycle suppressions. |
| openaev-front/src/admin/components/common/challenges/ChallengesPreviewDocumentsList.tsx | Removes unused style. |
| openaev-front/src/admin/components/common/articles/ArticleForm.tsx | Removes unused style. |
| openaev-front/src/admin/components/atomic_testings/atomic_testing/AtomicTestingRemediations.tsx | Removes obsolete suppression. |
| openaev-front/src/admin/components/atomic_testings/atomic_testing/AtomicTesting.tsx | Removes unused styles. |
| openaev-front/src/admin/components/assets/endpoints/AssetsList.tsx | Removes unused style. |
| openaev-front/src/admin/components/assets/asset/AssetDetail.tsx | Merges Page imports. |
| openaev-front/src/actions/user/user-tenant-actions.ts | Removes obsolete suppression. |
| openaev-front/src/actions/scenarios/scenario-simulation-action.ts | Removes obsolete suppression. |
| openaev-front/src/actions/inject_status/inject-status-action.ts | Removes obsolete suppression. |
| openaev-front/src/actions/capabilities/capability-action.ts | Removes obsolete suppression. |
| openaev-front/src/__tests__/utils/hooks/UseThemeModeClass.test.tsx | Merges MUI imports. |
| openaev-front/src/__tests__/reducers/App.test.ts | Merges Immutable imports. |
| openaev-front/scripts/check-node-version.js | Adds explicit Node version guard. |
| openaev-front/packages/eslint-plugin-custom-rules/tsconfig.json | Checks directly executed TypeScript sources. |
| 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 | Tests tss-react rule behavior. |
| openaev-front/packages/eslint-plugin-custom-rules/tests/lib/rules/classes-rule.test.js | Removes replaced JavaScript tests. |
| openaev-front/packages/eslint-plugin-custom-rules/package.json | Declares TypeScript entry and dependencies. |
| 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 | Implements scope-aware tss-react checks. |
| openaev-front/packages/eslint-plugin-custom-rules/lib/rules/classes-rule.js | Removes replaced JavaScript rule. |
| openaev-front/packages/eslint-plugin-custom-rules/lib/index.ts | Exposes rules, configuration, and cache fingerprint. |
| openaev-front/packages/eslint-plugin-custom-rules/lib/index.js | Removes replaced CommonJS entry. |
| openaev-front/package.json | Updates scripts and dependencies. |
| openaev-front/knip.ts | Configures dependency-check exceptions. |
| openaev-front/eslint.config.js | Replaces import plugin and enables suppression checking. |
| openaev-front/builder/prod/prod.js | Removes legacy production builder. |
| openaev-front/builder/prod/.keep | Preserves visible output directory. |
| openaev-front/builder/dev/index.html | Removes legacy development template. |
| openaev-front/builder/dev/dev.js | Removes legacy development builder. |
| openaev-front/.gitignore | Removes obsolete builder exclusion. |
| openaev-front/.dependency-cruiser.ts | Defines dependency graph checks. |
| openaev-front/.dependency-cruiser-known-violations.json | Records existing cycle baseline. |
| docs/docs/development/platform.md | Documents new validation commands. |
| AGENTS.md | Lists new frontend checks. |
| .github/instructions/frontend.instructions.md | Documents export conventions. |
| .github/copilot-instructions.md | Updates validation and CI guidance. |
| .github/ci-pipeline-schema.md | Documents expanded frontend quality checks. |
| .github/ci-pipeline-schema.d2 | Updates pipeline diagram source. |
| .github/agents/frontend-reviewer.agent.md | Aligns export review guidance. |
| .github/actions/frontend-quality/action.yml | Runs dependency checks and rule tests. |
| .claude/skills/review-code/SKILL.md | Adds dependency checks to review procedure. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| const free = identifiers.every(identifier => !ASTUtils.findVariable(sourceCode.getScope(identifier), HOOK_NAME)); | ||
| context.report({ | ||
| node: id, | ||
| messageId: 'name', | ||
| data: { expected: HOOK_NAME }, | ||
| fix: free ? fixer => identifiers.map(identifier => fixer.replaceText(identifier, HOOK_NAME)) : null, |
ESLint already reports unused eslint-disable directives as warnings by default, and `yarn lint` fails on any warning (--max-warnings 0), so the 'error' override changed nothing in CI. Only the editor shows them as warnings instead of errors now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🔴 High risk — Changes the CI |
…y-cruiser Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y-cruiser Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
close in favor of the stacked prs #8618 |

Proposed changes
yarn depcruise, config in.dependency-cruiser.ts):no-circular,not-to-dev-dep,no-non-package-json,not-to-unresolvable,not-to-test. It cruises the transpiled code, so a default import that shares its statement withtypespecifiers still counts. Tooling files (Vite, Vitest, Playwright, ESLint, knip and dependency-cruiser configs,scripts/) are cruised too. Baseline: one existing cycle,TextFieldAskAI.tsx↔SimpleRichTextField.jsx.yarn knip --dependenciesonly. Fixed drift: removed 7 unused root dependencies (@mui/lab,@mui/system,classcat,d3-hierarchy,js-file-download,@types/d3-hierarchy,@typescript-eslint/utils, which is now declared by the custom rules package that uses it).yarn controlnow usesyarn npm audit, because Yarn 4 has noyarn audit. The full report is not enforced yet: 37 unused files, 173 unused exports, 79 unused exported types and 6 duplicate exports.eslint-plugin-importandeslint-import-resolver-next, which also removesunrs-resolverand its postinstall script:no-circularnot-to-dev-dep,no-non-package-json; knipnot-to-unresolvable, Vite buildMISSING_EXPORT(JS files)IMPORT_IS_UNDEFINED(JS files)no-duplicate-imports+allowSeparateTypeImports(stricter: 7 merged)custom-rules/no-mutable-exports(with tests)dompurifyfalse positivesreportUnusedDisableDirectives: 'error', and 12 stale directives removed.packages/eslint-plugin-custom-rules) are written in TypeScript, with no build step:exportspoints tolib/index.ts, which Node runs by stripping the types. Rules useRuleCreatorfrom@typescript-eslint/utils; tests use@typescript-eslint/rule-testeronnode:testand now run in CI (yarn test:eslint-rules). The package has its own tsconfig, checked byyarn check-ts, is linted with the rest of the front, and exposes therecommendedconfig thateslint.config.jsuses. Its version carries a hash of its sources, so a local.eslintcacherefreshes when a rule changes.requireindexis dropped.classes-ruleworks again. It only matched the@mui/stylesformmakeStyles(fn), while all 172 files use the curried tss-react formmakeStyles()(fn), so it never reported anything. It now findsmakeStylesthrough its tss-react import and follows the hook's calls andclassesreads with scope analysis. It stays silent on anything it cannot resolve statically (classes[expr],classespassed along or spread, exported hooks, a destructuredclassesparameter). Removing an unused class is a suggestion, not an autofix, so fix on save never deletes a class that is being written. The 30 unused classes it found are removed (22 files, 145 lines of dead CSS).engines, so on Node older than 22.18 the TypeScript plugin and the dependency-cruiser config failed withERR_UNKNOWN_FILE_EXTENSION.scripts/check-node-version.jschecks Node againstengines(>= 24.11.0) and names the required version.eslint.config.jsruns it before importing the plugin (a static import fails before any code runs), andyarn depcruiseruns it first.builder/dev/*,builder/prod/prod.js, thedeprecated-startanddeprecated-buildscripts, and the packages only they used (chokidar,esbuild,express,fs-extra,http-proxy-middleware).yarn startandyarn buildalready run Vite.builder/prod/buildstays the Vite output read by Maven, the Dockerfiles and CI;builder/prod/.keepkeeps the folder in the repository.http-proxy-middlewareleaves the parsers and HTTP clients rule, and the dependencies of the local ESLint plugin follow the devDependencies batch, so@typescript-eslint/utilsmoves in the same PR astypescript-eslint.AGENTS.md,.github/copilot-instructions.mdanddocs/docs/development/platform.md; the CI pipeline schema and diagram are updated; the export conventions are in the frontend instructions and the frontend reviewer agent.Testing Instructions
cd openaev-front && yarn install --immutable.yarn check-ts,yarn lint,yarn test:eslint-rules,yarn depcruise,yarn knip --dependencies,yarn i18n-checkerandyarn buildpass;yarn buildfillsbuilder/prod/build.yarn depcruisefails on a new cycle (includingimport B, { type T }), a devDependency value import insrc/, an unresolvable import and asrc/→tests_e2e/import.yarn knip --dependenciesfails on an unused dependency.makeStyles, add a class without reading it fromclasses:yarn lintreportscustom-rules/classes-rule, the editor offers "Remove class" as a quick fix, and saving with ESLint fix on save keeps the class.yarn lintandyarn depcruiseprint the required version instead ofERR_UNKNOWN_FILE_EXTENSION(checked with the official Node 22.12 binary).Related issues
Checklist
Deployment
🌐 https://feat-8458-front-depe.oaev.staging.filigran.io
Further comments
dist: the front already requires Node 24.11 (engines), which strips types natively, so there is no build output to keep in step with the sources after each rule change or install.builder/prod/.keepis not needed by the build itself (Vite createsoutDir, Maven skips a missing resource folder); it only keeps the expected path visible in the repository.🤖 Generated with Claude Code