Skip to content

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

Closed
Guillaume (guillaumejparis) wants to merge 27 commits into
mainfrom
chore/front-dependency-cruiser
Closed

Guillaume (guillaumejparis) wants to merge 27 commits into
mainfrom
chore/front-dependency-cruiser

Conversation

@guillaumejparis

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

Copy link
Copy Markdown
Member

Proposed changes

  • Add dependency-cruiser 18.5.0 (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 with type specifiers 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.
  • Add knip 6.41.0. CI enforces yarn knip --dependencies only. 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 control now uses yarn npm audit, because Yarn 4 has no yarn audit. The full report is not enforced yet: 37 unused files, 173 unused exports, 79 unused exported types and 6 duplicate exports.
  • Remove eslint-plugin-import and eslint-import-resolver-next, which also removes unrs-resolver and its postinstall script:
import rule now covered by
no-cycle depcruise no-circular
no-extraneous-dependencies depcruise not-to-dev-dep, no-non-package-json; knip
no-unresolved tsc, depcruise not-to-unresolvable, Vite build
default, named (was off), export tsc (TS files); Vite build MISSING_EXPORT (JS files)
namespace tsc (TS files); the Vite build now fails on IMPORT_IS_UNDEFINED (JS files)
no-duplicates core no-duplicate-imports + allowSeparateTypeImports (stricter: 7 merged)
no-mutable-exports custom-rules/no-mutable-exports (with tests)
prefer-default-export dropped: convention documented in frontend instructions
no-named-as-default dropped: its 2 hits were suppressed dompurify false positives
  • reportUnusedDisableDirectives: 'error', and 12 stale directives removed.
  • The custom ESLint rules (packages/eslint-plugin-custom-rules) are written in TypeScript, with no build step: exports points to lib/index.ts, which Node runs by stripping the types. Rules use RuleCreator from @typescript-eslint/utils; tests use @typescript-eslint/rule-tester on node:test and now run in CI (yarn test:eslint-rules). The package has its own tsconfig, checked by yarn check-ts, is linted with the rest of the front, and exposes the recommended config that eslint.config.js uses. Its version carries a hash of its sources, so a local .eslintcache refreshes when a rule changes. requireindex is dropped.
  • classes-rule works again. It only matched the @mui/styles form makeStyles(fn), while all 172 files use the curried tss-react form makeStyles()(fn), so it never reported anything. It now finds makeStyles through its tss-react import and follows the hook's calls and classes reads with scope analysis. It stays silent on anything it cannot resolve statically (classes[expr], classes passed along or spread, exported hooks, a destructured classes parameter). 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).
  • Clear error on an old Node. Yarn does not enforce engines, so on Node older than 22.18 the TypeScript plugin and the dependency-cruiser config failed with ERR_UNKNOWN_FILE_EXTENSION. scripts/check-node-version.js checks Node against engines (>= 24.11.0) and names the required version. eslint.config.js runs it before importing the plugin (a static import fails before any code runs), and yarn depcruise runs it first.
  • Remove the legacy esbuild builder: builder/dev/*, builder/prod/prod.js, the deprecated-start and deprecated-build scripts, and the packages only they used (chokidar, esbuild, express, fs-extra, http-proxy-middleware). yarn start and yarn build already run Vite. builder/prod/build stays the Vite output read by Maven, the Dockerfiles and CI; builder/prod/.keep keeps the folder in the repository.
  • Renovate: http-proxy-middleware leaves the parsers and HTTP clients rule, and the dependencies of the local ESLint plugin follow the devDependencies batch, so @typescript-eslint/utils moves in the same PR as typescript-eslint.
  • Docs: the new checks are listed in AGENTS.md, .github/copilot-instructions.md and docs/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

  1. Use Node 24.11 or later, then cd openaev-front && yarn install --immutable.
  2. yarn check-ts, yarn lint, yarn test:eslint-rules, yarn depcruise, yarn knip --dependencies, yarn i18n-checker and yarn build pass; yarn build fills builder/prod/build.
  3. yarn depcruise fails on a new cycle (including import B, { type T }), a devDependency value import in src/, an unresolvable import and a src/ → tests_e2e/ import. yarn knip --dependencies fails on an unused dependency.
  4. In a component that uses makeStyles, add a class without reading it from classes: yarn lint reports custom-rules/classes-rule, the editor offers "Remove class" as a quick fix, and saving with ESLint fix on save keeps the class.
  5. On a Node older than 24.11, yarn lint and yarn depcruise print the required version instead of ERR_UNKNOWN_FILE_EXTENSION (checked with the official Node 22.12 binary).
  6. Environment: the IDE ESLint integration loads the plugin from TypeScript, so it must run on Node 24 (checked with the Node 24.21 of the VS Code WSL server). A JetBrains IDE uses its configured Node interpreter.

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

Further comments

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

📖 Documentation check — ✅ Passed

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

No documentation gaps detected.

@guillaumejparis Guillaume (guillaumejparis) changed the title chore(front): replace eslint-plugin-import with dependency-cruiser chore(front): replace eslint-plugin-import with dependency-cruiser (#8480) Oct 13, 2026
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>
@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 14, 2026
@guillaumejparis
Guillaume (guillaumejparis) changed the base branch from chore/front-eslint-react to renovate/major-eslint-monorepo October 14, 2026 12:54
…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>
Base automatically changed from renovate/major-eslint-monorepo to main October 15, 2026 08:06
…y-cruiser

# Conflicts:
#	openaev-front/eslint.config.js
#	openaev-front/yarn.lock
@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.97%. Comparing base (76bc844) to head (0afa307).

❌ 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              
Flag Coverage Δ
backend 72.33% <ø> (ø)
e2e 16.81% <ø> (-0.07%) ⬇️
frontend 13.81% <ø> (ø)

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.

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>
@guillaumejparis
Guillaume (guillaumejparis) marked this pull request as ready for review October 15, 2026 12:04
Copilot AI balanced review requested due to automatic review settings October 15, 2026 12:04
@github-actions
github-actions Bot temporarily deployed to feature-pr-8458 October 15, 2026 12:05 Inactive

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 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.

Comment on lines +211 to +216
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>
@github-actions
github-actions Bot temporarily deployed to feature-pr-8458 October 15, 2026 12:21 Inactive
@Filigran-Automation
Filigran Automation (Filigran-Automation) temporarily deployed to feature-pr-8458 October 15, 2026 12:33 Inactive
@heditar

Copy link
Copy Markdown
Contributor

🔴 High risk — Changes the CI frontend-quality action (new test:eslint-rules, depcruise, knip blocking steps) and the frontend build tooling: ESLint plugin rewrite, legacy esbuild builder removed, tsconfig/vite.config.ts changes, and runtime dependencies removed from package.json. The CI pipeline change alone sets High. The many src/ edits are mostly lint-only (unused makeStyles classes, eslint-disable lines removed).
👀 Focus: openaev-front/package.json — check that the removed runtime dependencies (@mui/lab, @mui/system, classcat, d3-hierarchy, js-file-download, http-proxy-middleware) are really unused, so the production bundle still builds and runs.
👀 Focus: .github/actions/frontend-quality/action.yml — check that the new blocking steps pass on main and run on the Node version the CI runner provides.

…y-cruiser

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions
github-actions Bot temporarily deployed to feature-pr-8458 October 15, 2026 16:41 Inactive
@Filigran-Automation
Filigran Automation (Filigran-Automation) temporarily deployed to feature-pr-8458 October 15, 2026 16:55 Inactive
…y-cruiser

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

Copy link
Copy Markdown
Member Author

close in favor of the stacked prs #8618

This branch was previously deployed

1 inactive deployment
feature-pr-8458 — 0afa3070 Deployed Oct 20, 2026 by Filigran-Automation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants