Repository navigation
chore(deps-dev): rollback eslint from 10 to ^9 - #286
Conversation
Not all plugins and components are compatible with ESLint 10. Remove eslint-plugin-react fork override that was needed for ESLint 10 compatibility. Scope npm audit to production deps only to avoid false positives from dev dependencies.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #286 +/- ##
========================================
Coverage 95.99% 95.99%
========================================
Files 91 91
Lines 13504 13504
Branches 983 1242 +259
========================================
Hits 12963 12963
Misses 541 541 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR rolls back ESLint from v10 to the v9 major line to restore compatibility with the current linting plugin ecosystem, removes the temporary eslint-plugin-react fork override, and adjusts CI auditing behavior.
Changes:
- Downgrade
eslintfrom^10.0.0to^9and drop theeslint-plugin-reactGitHub fork override. - Update
package-lock.jsonto reflect the new resolved dependency graph for ESLint v9. - Change CI
npm auditto omit devDependencies (--omit=dev).
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Downgrades ESLint and removes the eslint-plugin-react override. |
| package-lock.json | Re-resolves the dependency tree for ESLint v9 (and updates additional packages due to re-resolution). |
| .github/workflows/ci.yml | Scopes npm audit to production dependencies only. |
|
|
||
| - name: Audit packages | ||
| run: npm audit --audit-level=high | ||
| run: npm audit --omit=dev --audit-level=high |
There was a problem hiding this comment.
With --omit=dev, CI will no longer fail on known vulnerabilities that exist only in devDependencies. If this is intentional, consider renaming the step to clarify it's auditing production dependencies (or add a separate scheduled/full audit) so the reduced coverage is explicit.
| run: npm audit --omit=dev --audit-level=high | |
| run: npm audit --audit-level=high |
🎯 Scope & Context
Type: Chore
Intent: Rollback ESLint from v10 to ^9 because not all plugins and components are compatible with ESLint 10 yet. This also removes the
eslint-plugin-reactfork override that was only needed for ESLint 10 compatibility, and scopesnpm auditin CI to production dependencies only.🧭 Reviewer Guide
Complexity: Low
Entry Point
Start with
package.json- the two key changes are the ESLint version constraint reverting from^10.0.0to^9and the removal of theeslint-plugin-reactGitHub fork override. Thepackage-lock.jsonchanges are the resolved dependency tree for this downgrade.Sensitive Areas
.github/workflows/ci.yml:npm auditnow uses--omit=devto avoid false positives from dev dependency advisories