[PR #1625] [MERGED] Scope TypeScript no-undef in staged ESLint report #5156

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/1625
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis

Base: refactor ← Head: chore/eslint-no-undef-scope-2026-05-30


📝 Commits (1)

  • 96bb2c8 Scope TypeScript no-undef in ESLint report

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

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

📄 Description

Linked issue

Part of #1619

Why this change

  • Phase 1 of ESLint restoration needs the staged report to stop treating TypeScript and DOM/browser names as undefined globals.
  • TypeScript already owns name resolution for TS/TSX source, so base ESLint no-undef is fake noise there and hides the actionable lint buckets.

What changed

  • Added a staged-report-only override in eslint.full-report.config.js that disables base no-undef for src/**/*.{ts,tsx}.
  • Kept @eslint/js recommended rules enabled for the staged report and left the blocking pnpm lint architecture gate unchanged.

Refactor impact

Primary owner:

Tooling / lint configuration

Impact areas reviewed:

  • Staged ESLint full-report config
  • Existing blocking pnpm lint behavior
  • TypeScript name-resolution proof path

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-no-undef-scope.json before the change reported 3,543 errors across 374 files, including no-undef: 2,467.
  • pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-no-undef-scope.json after the change reported 1,076 errors across 229 files, with no-undef: 0.
  • Remaining top rules after the change: no-unused-vars 1,047; no-useless-escape 23; require-yield 2; no-control-regex 2; no-redeclare 2.
  • 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/1625 **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-no-undef-scope-2026-05-30` --- ### 📝 Commits (1) - [`96bb2c8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/96bb2c8d8282856fdf178086ebf7fece04c55054) Scope TypeScript no-undef in ESLint report ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `eslint.full-report.config.js` (+7 -0) </details> ### 📄 Description ## Linked issue Part of #1619 ## Why this change - Phase 1 of ESLint restoration needs the staged report to stop treating TypeScript and DOM/browser names as undefined globals. - TypeScript already owns name resolution for TS/TSX source, so base ESLint `no-undef` is fake noise there and hides the actionable lint buckets. ## What changed - Added a staged-report-only override in `eslint.full-report.config.js` that disables base `no-undef` for `src/**/*.{ts,tsx}`. - Kept `@eslint/js` recommended rules enabled for the staged report and left the blocking `pnpm lint` architecture gate unchanged. ## Refactor impact Primary owner: Tooling / lint configuration Impact areas reviewed: - Staged ESLint full-report config - Existing blocking `pnpm lint` behavior - TypeScript name-resolution proof path 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-no-undef-scope.json` before the change reported 3,543 errors across 374 files, including `no-undef`: 2,467. - `pnpm lint:eslint:full-report -- --output .eslint-reports/eslint-full-report-after-no-undef-scope.json` after the change reported 1,076 errors across 229 files, with `no-undef`: 0. - Remaining top rules after the change: `no-unused-vars` 1,047; `no-useless-escape` 23; `require-yield` 2; `no-control-regex` 2; `no-redeclare` 2. - `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#5156
No description provided.