[PR #1632] [MERGED] Enforce React Hooks lint rules #5164

Closed
opened 2026-10-22 04:13:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1632
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis

Base: refactor ← Head: chore/eslint-hooks-gate-2026-05-30


📝 Commits (1)

  • 0724e61 Enforce React Hooks lint rules

📊 Changes

2 files changed (+2 additions, -8 deletions)

View changed files

📝 eslint.config.js (+2 -0)
📝 eslint.full-report.config.js (+0 -8)

📄 Description

Linked issue

Part of #1619

Why this change

  • React Hooks findings are now clean after the non-GameSurface and GameSurface cleanup slices, so the useful hooks signal can move from staged report-only coverage into normal lint.

What changed

  • Enables react-hooks/rules-of-hooks as an error in the main ESLint config.
  • Enables react-hooks/exhaustive-deps as a warning in the main ESLint config.
  • Removes the now-redundant staged React Hooks report block from the full-report config; full reports still inherit the normal hooks rules through the base config.

Refactor impact

Primary owner:

Tooling / ESLint config

Impact areas reviewed:

  • Normal pnpm lint ESLint path
  • Staged pnpm lint:eslint:full-report path
  • Architecture/docs validation gates for config-only changes

Boundary notes:

  • No app, feature, engine, shared API, Rust, Tauri command, or remote runtime behavior changed.
  • Existing architecture/import lint rules stay in place.
  • React Hooks rules now run as part of normal source lint for src/**/*.{ts,tsx}.

Pressure points touched:

  • None; only root ESLint config files changed.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • pnpm lint
  • pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-before-hooks-gate.json: 0 errors, 0 warnings across 0 files before the gate change.
  • pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-hooks-gate.json: 0 errors, 0 warnings across 0 files after moving hooks into normal lint.
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check:docs
  • git diff --check passed with existing CRLF warnings for the touched JS config files.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No changelog update: this repo branch currently has no CHANGELOG.md, and this is tooling-only lint enforcement.

UI evidence

N/A; no visible UI changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1632 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `chore/eslint-hooks-gate-2026-05-30` --- ### 📝 Commits (1) - [`0724e61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0724e611906e07556dce4577fb2e325f4fa4842a) Enforce React Hooks lint rules ### 📊 Changes **2 files changed** (+2 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `eslint.config.js` (+2 -0) 📝 `eslint.full-report.config.js` (+0 -8) </details> ### 📄 Description ## Linked issue Part of #1619 ## Why this change - React Hooks findings are now clean after the non-GameSurface and GameSurface cleanup slices, so the useful hooks signal can move from staged report-only coverage into normal lint. ## What changed - Enables `react-hooks/rules-of-hooks` as an error in the main ESLint config. - Enables `react-hooks/exhaustive-deps` as a warning in the main ESLint config. - Removes the now-redundant staged React Hooks report block from the full-report config; full reports still inherit the normal hooks rules through the base config. ## Refactor impact Primary owner: Tooling / ESLint config Impact areas reviewed: - Normal `pnpm lint` ESLint path - Staged `pnpm lint:eslint:full-report` path - Architecture/docs validation gates for config-only changes Boundary notes: - No app, feature, engine, shared API, Rust, Tauri command, or remote runtime behavior changed. - Existing architecture/import lint rules stay in place. - React Hooks rules now run as part of normal source lint for `src/**/*.{ts,tsx}`. Pressure points touched: - None; only root ESLint config files changed. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `pnpm lint` - `pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-before-hooks-gate.json`: 0 errors, 0 warnings across 0 files before the gate change. - `pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-hooks-gate.json`: 0 errors, 0 warnings across 0 files after moving hooks into normal lint. - `pnpm typecheck` - `pnpm check:architecture` - `pnpm check:docs` - `git diff --check` passed with existing CRLF warnings for the touched JS config files. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims No changelog update: this repo branch currently has no `CHANGELOG.md`, and this is tooling-only lint enforcement. ## UI evidence N/A; no visible UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:51 +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#5164
No description provided.