Repository navigation
fix(plugins): keep checkPlugin from undoing the ESLint 9 migration - #8585
Conversation
The 28 Nov sync put .eslintrc.cjs back into ep_hljs and
ep_dynamic_default_content, dropped their TypeScript 7 Dependabot ignore,
and wrote a lint.yml whose `version: 10` clashes with a plugin
packageManager pin ("Multiple versions of pnpm specified").
- Replace lib/eslintrc.cjs with lib/eslint.config.mjs. A plugin with a
flat config keeps it and loses any leftover .eslintrc.*; one with only
the stock .eslintrc.cjs, or none, gets the flat config and ESLint 9.
A customised .eslintrc.* is only warned about.
- Default devDependencies are eslint ^9.39.5 and
eslint-config-etherpad ^5.0.4.
- lib/dependabot.yml keeps typescript below 7.
- lint.yml takes pnpm from core's packageManager (sparse checkout of
core's package.json), like the test workflows, so no template pins a
pnpm version. checkPlugin drops a plugin's own pnpm packageManager pin.
- ep_dynamic_default_content no longer needs its own lint.yml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoPrevent plugin sync from reversing the ESLint 9 migration
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
…t config Review follow-ups: - Decide the ESLint config before touching eslint devDependencies. A plugin with only a customised .eslintrc.* is no longer given ESLint 9, which would ignore its config. - A plugin that already has a flat config gets at least eslint ^9.39.5 and eslint-config-etherpad ^5.0.4, so removing its legacy config cannot leave it on ESLint 8. - Next to a flat config, only the stock .eslintrc.cjs is deleted; a customised one is kept with a warning. - autofix runs `pnpm install --no-frozen-lockfile`, so the lockfile follows the package.json changes even where CI makes frozen the default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
The template sync on 29 Nov pushed autofixes to ep_hljs and ep_dynamic_default_content that undid the ESLint 9 migration: it re-added
.eslintrc.cjs, removed thetypescript >=7Dependabot ignore, and wrote alint.ymlwith pnpmversion: 10, which fails against a plugin'spackageManagerpin. The other 79 campaign plugins would get the same on the next successful run. The workflow is disabled until this lands.lib/eslintrc.cjsis replaced bylib/eslint.config.mjs. A plugin that has a flat config keeps it, and any leftover.eslintrc.*is removed (ESLint 9 ignores it). A plugin with only the stock.eslintrc.cjs, or no config, gets the flat config and at least eslint ^9.39.5 / eslint-config-etherpad ^5.0.4. A customised.eslintrc.*only gets a warning.lib/dependabot.ymlkeeps thetypescript >=7ignore.lint.ymlsparse-checks out core'spackage.jsonand passes it aspackage_json_file, like the backend and frontend workflows. No template sets a pnpmversion:, so nothing clashes withpackageManager. checkPlugin removes a plugin's ownpackageManager: pnpm@...pin.lint.yml.bin/plugins/pluginLint.tsand are covered insrc/tests/backend/specs/checkPlugin.ts, along with template checks.Plugin PRs that repair the two affected repos: ether/ep_hljs#31, ether/ep_dynamic_default_content#137.
🤖 Generated with Claude Code
https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw