[PR #1620] [MERGED] Add staged ESLint full report #5152

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

📋 Pull Request Information

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

Base: refactor ← Head: chore/eslint-restoration-baseline-2026-05-30


📝 Commits (3)

  • 0e469c9 Add staged ESLint full report
  • a207a6a Use ignored ESLint report directory
  • 6b7ef4f Make ESLint report config statically visible

📊 Changes

5 files changed (+81 additions, -0 deletions)

View changed files

📝 .gitignore (+1 -0)
➕ eslint.full-report.config.js (+14 -0)
📝 package.json (+2 -0)
📝 pnpm-lock.yaml (+3 -0)
➕ scripts/eslint-full-report.mjs (+61 -0)

📄 Description

Linked issue

Part of #1619

Why this change

  • Restore a reproducible ESLint recommended-rule report path for the refactor branch without making the known noisy findings CI-blocking.
  • Preserve the existing architecture-focused lint gate as the blocking pnpm lint behavior while the broader rule buckets are classified.

What changed

  • Added eslint.full-report.config.js to layer @eslint/js recommended rules over the current architecture ESLint config for source files.
  • Added scripts/eslint-full-report.mjs and pnpm lint:eslint:full-report to write a JSON report and print rule-count summaries.
  • Made the report config a static import from the report script so Knip sees it as used while ESLint still uses the report-only config object.
  • Defaulted generated reports to .eslint-reports/eslint-full-report.json and ignored that directory in the repo so clean clones do not need local scratch/ setup.
  • Added @eslint/js as a direct dev dependency so the staged config import is stable under pnpm.

Refactor impact

Primary owner:

Tooling / lint configuration

Impact areas reviewed:

  • Existing architecture lint config and pnpm lint gate
  • Package scripts and lint dependency metadata
  • Report output shape for staged ESLint restoration work
  • Knip unused-file reporting for the new report config

Boundary notes:

  • No runtime behavior changed.
  • No engine, shared API, feature, Rust, Tauri, or remote-runtime boundary changed.
  • The report config composes the existing architecture config instead of replacing it.

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 exec eslint . --format json --output-file scratch/eslint-current-refactor-2026-05-30-phase0.json passed with 0 errors and 0 warnings.
  • pnpm lint:eslint:full-report wrote .eslint-reports/eslint-full-report.json and exited successfully: 3,525 errors, 0 warnings across 373 files.
  • git check-ignore -v .eslint-reports\eslint-full-report.json confirmed the default report output is ignored by repo .gitignore.
  • Top staged report rules: no-undef 2,449; 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 after making eslint.full-report.config.js a static import from the report script.

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/1620 **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-restoration-baseline-2026-05-30` --- ### 📝 Commits (3) - [`0e469c9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0e469c9eea0f24d1cc4d99ddfd5b6f6745aa797a) Add staged ESLint full report - [`a207a6a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a207a6a76d7d9f20ef0fa0b652dc6b2ffb601a2a) Use ignored ESLint report directory - [`6b7ef4f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b7ef4fd384dc534ff056b3cba73b87992c76250) Make ESLint report config statically visible ### 📊 Changes **5 files changed** (+81 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) ➕ `eslint.full-report.config.js` (+14 -0) 📝 `package.json` (+2 -0) 📝 `pnpm-lock.yaml` (+3 -0) ➕ `scripts/eslint-full-report.mjs` (+61 -0) </details> ### 📄 Description ## Linked issue Part of #1619 ## Why this change - Restore a reproducible ESLint recommended-rule report path for the refactor branch without making the known noisy findings CI-blocking. - Preserve the existing architecture-focused lint gate as the blocking `pnpm lint` behavior while the broader rule buckets are classified. ## What changed - Added `eslint.full-report.config.js` to layer `@eslint/js` recommended rules over the current architecture ESLint config for source files. - Added `scripts/eslint-full-report.mjs` and `pnpm lint:eslint:full-report` to write a JSON report and print rule-count summaries. - Made the report config a static import from the report script so Knip sees it as used while ESLint still uses the report-only config object. - Defaulted generated reports to `.eslint-reports/eslint-full-report.json` and ignored that directory in the repo so clean clones do not need local `scratch/` setup. - Added `@eslint/js` as a direct dev dependency so the staged config import is stable under pnpm. ## Refactor impact Primary owner: Tooling / lint configuration Impact areas reviewed: - Existing architecture lint config and `pnpm lint` gate - Package scripts and lint dependency metadata - Report output shape for staged ESLint restoration work - Knip unused-file reporting for the new report config Boundary notes: - No runtime behavior changed. - No engine, shared API, feature, Rust, Tauri, or remote-runtime boundary changed. - The report config composes the existing architecture config instead of replacing it. 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 exec eslint . --format json --output-file scratch/eslint-current-refactor-2026-05-30-phase0.json` passed with 0 errors and 0 warnings. - `pnpm lint:eslint:full-report` wrote `.eslint-reports/eslint-full-report.json` and exited successfully: 3,525 errors, 0 warnings across 373 files. - `git check-ignore -v .eslint-reports\eslint-full-report.json` confirmed the default report output is ignored by repo `.gitignore`. - Top staged report rules: `no-undef` 2,449; `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 after making `eslint.full-report.config.js` a static import from the report script. ## 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:46 +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#5152
No description provided.