[GH-ISSUE #1619] [Feature]: Restore useful ESLint coverage on refactor #831

Closed
opened 2026-10-21 05:21:37 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (May 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1619

Originally assigned to: @Xelvanis on GitHub.

What problem does this solve?

The refactor branch currently has a useful architecture-focused ESLint setup, but broader JavaScript, TypeScript, and React diagnostics are not restored yet. A direct enablement of recommended rules is too noisy to make CI-blocking immediately, so the project needs a staged restoration path that preserves the existing architecture guard while making general lint signal reproducible and actionable.

Proposed behavior

Restore useful ESLint coverage in staged PRs:

  1. Keep the current architecture lint gate blocking.
  2. Add a reproducible non-blocking full ESLint report path for recommended JavaScript/TypeScript/React diagnostics.
  3. Remove fake no-undef noise from browser, DOM, TypeScript, and Node globals before judging remaining findings.
  4. Add TypeScript ESLint recommended rules in warning/report-only mode first.
  5. Restore React Hooks signal, starting with rules-of-hooks and then triaging exhaustive-deps.
  6. Work through unused variables and smaller recommended-rule buckets by owner area.
  7. Promote clean rule buckets into CI enforcement only after the report is understood and stable.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

This should be a tooling-first effort. Do not copy the old legacy client ESLint config wholesale; the refactor tree has different ownership boundaries. Preserve the current architecture rules in eslint.config.js, keep CI behavior unchanged until each bucket is intentionally ratcheted, and avoid deleting exported contracts, schemas, generated shapes, or extension/API surfaces just because an early unused-variable report flags them.

Alternatives considered

Enabling all recommended rules as a blocking lint gate immediately would create a large noisy failure surface and obscure the real signal. Leaving lint architecture-only forever would miss TypeScript, React Hooks, and local cleanup diagnostics that can catch real regressions.

Additional context

Initial local investigation found the current architecture-focused ESLint config clean, while a temporary recommended-rule overlay produced thousands of findings mostly dominated by false no-undef noise and unused variables. The first PR should be config-only: reproducible reports and direct lint dependencies if needed, without changing runtime behavior or CI gates.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (May 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1619 Originally assigned to: @Xelvanis on GitHub. ## What problem does this solve? The refactor branch currently has a useful architecture-focused ESLint setup, but broader JavaScript, TypeScript, and React diagnostics are not restored yet. A direct enablement of recommended rules is too noisy to make CI-blocking immediately, so the project needs a staged restoration path that preserves the existing architecture guard while making general lint signal reproducible and actionable. ## Proposed behavior Restore useful ESLint coverage in staged PRs: 1. Keep the current architecture lint gate blocking. 2. Add a reproducible non-blocking full ESLint report path for recommended JavaScript/TypeScript/React diagnostics. 3. Remove fake `no-undef` noise from browser, DOM, TypeScript, and Node globals before judging remaining findings. 4. Add TypeScript ESLint recommended rules in warning/report-only mode first. 5. Restore React Hooks signal, starting with `rules-of-hooks` and then triaging `exhaustive-deps`. 6. Work through unused variables and smaller recommended-rule buckets by owner area. 7. Promote clean rule buckets into CI enforcement only after the report is understood and stable. ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [x] Docs, contributor workflow, or templates ## Refactor branch considerations This should be a tooling-first effort. Do not copy the old legacy client ESLint config wholesale; the refactor tree has different ownership boundaries. Preserve the current architecture rules in `eslint.config.js`, keep CI behavior unchanged until each bucket is intentionally ratcheted, and avoid deleting exported contracts, schemas, generated shapes, or extension/API surfaces just because an early unused-variable report flags them. ## Alternatives considered Enabling all recommended rules as a blocking lint gate immediately would create a large noisy failure surface and obscure the real signal. Leaving lint architecture-only forever would miss TypeScript, React Hooks, and local cleanup diagnostics that can catch real regressions. ## Additional context Initial local investigation found the current architecture-focused ESLint config clean, while a temporary recommended-rule overlay produced thousands of findings mostly dominated by false `no-undef` noise and unused variables. The first PR should be config-only: reproducible reports and direct lint dependencies if needed, without changing runtime behavior or CI gates. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:21:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#831
No description provided.