Changed apps/comments-ui + apps/signup-form to ESLint 9 / flat config#28801
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughBoth Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin-x-settings:test:acceptance |
✅ Succeeded | 10m 27s | View ↗ |
nx build @tryghost/activitypub |
✅ Succeeded | 3s | View ↗ |
nx build @tryghost/sodo-search |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/portal |
✅ Succeeded | 1s | View ↗ |
nx build @tryghost/comments-ui |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/announcement-bar |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/admin-toolbar |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/signup-form |
✅ Succeeded | <1s | View ↗ |
Additional runs (15) |
✅ Succeeded | ... | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-06-22 19:23:57 UTC
ref https://linear.app/tryghost/ - replaced .eslintrc.* with eslint.config.js in both packages - swapped catalog: to catalog:eslint9, added @eslint/js, globals, eslint-plugin-react, eslint-plugin-ghost, typescript-eslint (unified) - eslint-plugin-tailwindcss already at catalog:tailwind3 (no change) - 'no-unused-vars' off + '@typescript-eslint/no-unused-vars' configured to match the legacy ghost/ts behavior (skip args, ignore _ prefix, skip catches) - modernized both packages to ESM ('type': 'module'); zero CJS in src/test for either workspace - bumped comments-ui 1.5.12→1.5.13 (~1.5 range in defaults.json) - bumped signup-form 0.3.27→0.3.28 (~0.3 range in defaults.json)
1ad273b to
acc4d33
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #28801 +/- ##
==========================================
- Coverage 73.89% 73.86% -0.03%
==========================================
Files 1559 1559
Lines 134722 134722
Branches 16211 16208 -3
==========================================
- Hits 99555 99515 -40
- Misses 34157 34227 +70
+ Partials 1010 980 -30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|

Summary
.eslintrc.js/.eslintrc.cjswitheslint.config.jsin both packages.eslint: catalog:tocatalog:eslint9and added@eslint/js,globals,eslint-plugin-react,eslint-plugin-ghost,typescript-eslint(unified) as direct deps.eslint-plugin-tailwindcssstays atcatalog:tailwind3.plugin:ghost/ts+plugin:react/recommended(+plugin:i18next/recommendedfor comments-ui) extends. Formatting rules removed from ESLint 9 core dropped; non-formatting rules preserved inline.--extCLI flag;lintscripts now pass directory args.no-unused-varsand configured@typescript-eslint/no-unused-varswith `argsIgnorePattern: '^_'` and `caughtErrors: 'none'` — matches the legacyplugin:ghost/tsposture (interface signatures and unused catch bindings stay tolerated)..mjsextension on the eslint config.~1.5/~0.3ranges pinned in defaults.json.Test plan