[PR #1626] [MERGED] Add TypeScript ESLint staged report rules #5158

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

📋 Pull Request Information

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

Base: refactor ← Head: chore/eslint-typescript-report-2026-05-30


📝 Commits (1)

  • a6b2207 Add TypeScript ESLint staged report rules

📊 Changes

1 file changed (+26 additions, -3 deletions)

View changed files

📝 eslint.full-report.config.js (+26 -3)

📄 Description

Linked issue

Part of #1619

Why this change

  • Phase 2 restores TypeScript ESLint recommended diagnostics in the staged full-report path without changing the blocking architecture lint gate.
  • The previous staged report still had a huge base no-unused-vars bucket that treated TypeScript syntax poorly; TypeScript ESLint gives cleaner signal.

What changed

  • Layered typescript-eslint recommended rule configs over src/**/*.{ts,tsx} in eslint.full-report.config.js.
  • Kept the existing architecture config as the base layer.
  • Kept pragmatic Phase 2 relaxations for report-only triage: @typescript-eslint/no-explicit-any off, @typescript-eslint/no-empty-object-type off, no-empty-pattern off, no-undef off for TS/TSX, and @typescript-eslint/no-unused-vars warning-level with _ ignore patterns.

Refactor impact

Primary owner:

Tooling / lint configuration

Impact areas reviewed:

  • Staged ESLint full-report config
  • Existing blocking pnpm lint behavior
  • TypeScript ESLint recommended rule composition
  • Knip visibility for the report config

Boundary notes:

  • No runtime behavior changed.
  • No engine, shared API, feature, Rust, Tauri, or remote-runtime boundary changed.
  • This only changes diagnostic output for the optional staged report command.

Pressure points touched:

  • None. No ModeSurface, GameSurface, shared mode UI, command registration, or import workflow files touched.

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:eslint:full-report -- --output .eslint-reports/eslint-full-report-before-ts-recommended.json before the change reported 1,076 errors, 0 warnings across 229 files. Rule counts: no-unused-vars 1,047; no-useless-escape 23; require-yield 2; no-control-regex 2; no-redeclare 2.
  • pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-ts-recommended.json after the change reported 28 errors, 0 warnings across 10 files. Rule counts: no-useless-escape 23; require-yield 2; no-control-regex 2; prefer-const 1.
  • pnpm lint passed.
  • pnpm typecheck passed.
  • pnpm check:architecture passed.
  • pnpm check:docs passed.
  • pnpm check:unused passed.

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 was made because this refactor checkout does not have a CHANGELOG.md, and the change is tooling-only with no runtime/user-facing behavior change.

UI evidence

Not applicable; this is a config-only tooling change.


🔄 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/1626 **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-typescript-report-2026-05-30` --- ### 📝 Commits (1) - [`a6b2207`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a6b2207874a05de46f29b1710688bc23085e748f) Add TypeScript ESLint staged report rules ### 📊 Changes **1 file changed** (+26 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `eslint.full-report.config.js` (+26 -3) </details> ### 📄 Description ## Linked issue Part of #1619 ## Why this change - Phase 2 restores TypeScript ESLint recommended diagnostics in the staged full-report path without changing the blocking architecture lint gate. - The previous staged report still had a huge base `no-unused-vars` bucket that treated TypeScript syntax poorly; TypeScript ESLint gives cleaner signal. ## What changed - Layered `typescript-eslint` recommended rule configs over `src/**/*.{ts,tsx}` in `eslint.full-report.config.js`. - Kept the existing architecture config as the base layer. - Kept pragmatic Phase 2 relaxations for report-only triage: `@typescript-eslint/no-explicit-any` off, `@typescript-eslint/no-empty-object-type` off, `no-empty-pattern` off, `no-undef` off for TS/TSX, and `@typescript-eslint/no-unused-vars` warning-level with `_` ignore patterns. ## Refactor impact Primary owner: Tooling / lint configuration Impact areas reviewed: - Staged ESLint full-report config - Existing blocking `pnpm lint` behavior - TypeScript ESLint recommended rule composition - Knip visibility for the report config Boundary notes: - No runtime behavior changed. - No engine, shared API, feature, Rust, Tauri, or remote-runtime boundary changed. - This only changes diagnostic output for the optional staged report command. Pressure points touched: - None. No ModeSurface, GameSurface, shared mode UI, command registration, or import workflow files touched. ## Validation - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `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:eslint:full-report -- --output .eslint-reports/eslint-full-report-before-ts-recommended.json` before the change reported 1,076 errors, 0 warnings across 229 files. Rule counts: `no-unused-vars` 1,047; `no-useless-escape` 23; `require-yield` 2; `no-control-regex` 2; `no-redeclare` 2. - `pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-ts-recommended.json` after the change reported 28 errors, 0 warnings across 10 files. Rule counts: `no-useless-escape` 23; `require-yield` 2; `no-control-regex` 2; `prefer-const` 1. - `pnpm lint` passed. - `pnpm typecheck` passed. - `pnpm check:architecture` passed. - `pnpm check:docs` passed. - `pnpm check:unused` passed. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims No changelog update was made because this refactor checkout does not have a `CHANGELOG.md`, and the change is tooling-only with no runtime/user-facing behavior change. ## UI evidence Not applicable; this is a config-only tooling change. --- <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:48 +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#5158
No description provided.