Skip to content

fix: restore the eslint 9 setup and make lint pass - #31

Merged
JohnMcLear merged 1 commit into
mainfrom
fix/restore-eslint9
Nov 29, 2026
Merged

JohnMcLear merged 1 commit into
mainfrom
fix/restore-eslint9

Conversation

@JohnMcLear

Copy link
Copy Markdown
Member

The template sync on 29 Nov (a7306ac) undid parts of the eslint 9 move, and lint has failed since then with "Multiple versions of pnpm specified".

  • Remove the re-added .eslintrc.cjs. ESLint 9 ignores it.
  • Restore the Dependabot ignore for typescript >=7.
  • lint.yml now gets pnpm from core's packageManager, the same way the test workflows do, instead of version: 10.
  • Drop the pnpm@11.0.6 pin so CI uses core's pnpm.
  • Remove an unused eejs require that lint flags.

The sync's action bumps, npmpublish fixes, lint gate and dependency bumps stay. The matching template fix is in ether/etherpad.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw

The 29 Nov template sync (a7306ac) undid parts of the eslint 9 move.

- Remove the re-added .eslintrc.cjs; eslint 9 ignores it.
- Restore the Dependabot ignore for typescript >=7.
- lint.yml now gets pnpm from core's packageManager, the same way the test
  workflows do, instead of `version: 10`, which clashed with the
  packageManager pin ("Multiple versions of pnpm specified").
- Drop the pnpm@11.0.6 packageManager pin, so CI uses core's pnpm.
- Remove an unused eejs require that lint flags.

The sync's action bumps, npmpublish fixes, lint gate and dependency bumps
stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Restore ESLint 9 configuration and fix pnpm setup in CI

🐞 Bug fix ⚙️ Configuration changes 🕐 10-20 Minutes

Grey Divider

AI Description

• Restore ESLint 9 linting by removing obsolete configuration and an unused import.
• Make lint and publishing use Etherpad core’s pnpm version to avoid version conflicts.
• Prevent unsupported TypeScript 7 upgrades until the lint tooling supports them.
Merge Risk 🟡 Medium

Blast radius 🔴 High 💥 4 capabilities

  • 4 affected capabilities span independent functional scopes: Plugin delivery automation, Plugin distribution and installation.
  • This capability is the repository's lint validation operation.
  • The changed checkout, package-manager setup, dependency installation, and ESLint invocation all participate in that one validation outcome.
  • Publication is a separate delivery operation from lint validation, but both belong to the bounded plugin delivery automation scope.
  • The changed pnpm setup directly gates dependency installation and publication.
  • This is the bounded operation that consumes package metadata to install the plugin and its dependencies.
  • It is distinct from CI validation and release publication because its outcome is a host installation, not repository automation.
  • The capability is the repository's automated maintenance operation.
  • The changed ignore rule affects only which TypeScript update proposals are generated and does not directly alter shipped plugin execution.
Behavioral complexity 🟡 Medium 🧩 Compatibility cases

  • Before, lint ran from the default checkout using a locally configured pnpm version.
  • After, it coordinates separate plugin and core checkouts, derives pnpm from core metadata, and runs commands in plugin/.
  • New correctness condition: the checkout paths and package-manager metadata must remain mutually consistent.
  • The deleted legacy config is replaced by the existing flat ESLint configuration; no application execution path depends on it.
Potential damage 🟡 Medium 🩹 Temporary loss

  • If the new checkout or package-manager arrangement is incompatible with the action environment, lint validation can fail or become unavailable.
  • The failure is confined to CI validation and does not alter deployed pad behavior.
  • Reverting or correcting the workflow restores the job; no persistent application state or external customer data requires repair.
Assessed commit 27dfd99
Diagram

graph TD
  Core["Core package manifest"] --> LintPnpm["Lint pnpm setup"] --> Lint["ESLint job"]
  Core --> PublishPnpm["Publish pnpm setup"] --> Publish["Publish job"]
  Plugin["Plugin checkout"] --> Lint
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Pin pnpm explicitly in each workflow
  • ➕ Would let lint avoid checking out core solely to select a pnpm version.
  • ➖ Pins could drift from core and the test workflows, recreating version conflicts.

Recommendation: Use core’s packageManager as proposed. It keeps the pnpm version aligned across plugin workflows; an explicit lint-only pin would be simpler locally but require ongoing coordination with core.

Files changed (5) +25 / -5

Bug fix (2) +18 / -4
lint.ymlSelect lint pnpm from Etherpad core +18/-3

Select lint pnpm from Etherpad core

• Checks out the plugin and core manifest separately, then configures pnpm from core’s packageManager instead of a conflicting explicit version. Runs installation and lint from the plugin directory and keys the cache to its lockfile.

.github/workflows/lint.yml

index.jsRemove unused eejs import +0/-1

Remove unused eejs import

• Removes an unused require that ESLint flags.

index.js

Documentation (1) +3 / -0
npmpublish.ymlDocument pnpm version selection for publishing +3/-0

Document pnpm version selection for publishing

• Adds a comment explaining that the publishing workflow obtains pnpm from the checked-out core package.json; its execution steps do not change.

.github/workflows/npmpublish.yml

Other (2) +4 / -1
dependabot.ymlBlock unsupported TypeScript 7 upgrades +4/-0

Block unsupported TypeScript 7 upgrades

• Restores the npm Dependabot ignore rule for TypeScript versions 7 and above while typescript-eslint lacks support.

.github/dependabot.yml

package.jsonRemove plugin-level pnpm version pin +0/-1

Remove plugin-level pnpm version pin

• Drops the pnpm@11.0.6 packageManager field so the plugin no longer specifies a version that conflicts with the one selected from core in CI.

package.json

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can switch off images and animations for a plain-text comment

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@JohnMcLear
JohnMcLear merged commit 92e7fe3 into main Nov 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant