Skip to content

chore: update @oclif/core to v4 and eslint to v9 with neostandard#908

Merged
shazron merged 2 commits intomasterfrom
chore/update-oclif-core-v4
Apr 9, 2026
Merged

chore: update @oclif/core to v4 and eslint to v9 with neostandard#908
shazron merged 2 commits intomasterfrom
chore/update-oclif-core-v4

Conversation

@shazron
Copy link
Copy Markdown
Member

@shazron shazron commented Apr 7, 2026

Summary

  • Update @oclif/core from ^2.11.6 to ^4.9.0 (resolves chore: update @oclif/core to latest version #905)
  • Update @adobe/eslint-config-aio-lib-config from v4 to v5 (neostandard)
  • Migrate from .eslintrc.json to eslint.config.js (ESLint 9 flat config)
  • Remove obsolete eslint plugins: eslint-config-standard, eslint-plugin-import, eslint-plugin-jest, eslint-plugin-n, eslint-plugin-node, eslint-plugin-promise

oclif v4 migration details

oclif v4's parse() now calls this.config.runHook('preparse', ...) before parsing argv. Tests that instantiate commands directly (new TheCommand([])) need a mock config with runHook returning { successes: [] }. A global.createOclifMockConfig() helper was added to test/jest.setup.js for this purpose.

ESLint migration details

  • Migrated to ESLint 9 flat config with @adobe/eslint-config-aio-lib-config v5 + neostandard
  • Removed obsolete eslint-disable comments for removed rules (node/*, no-process-exit, no-template-curly-in-string, jest/*)
  • Added Jest globals for test files in the flat config

Test plan

  • All 831 unit tests pass
  • 100% code coverage maintained
  • npm run lint passes clean
  • npm test (tests + lint) passes

🤖 Generated with Claude Code

Update @oclif/core from v2.11.6 to v4.9.0 and modernize the ESLint
setup by migrating to @adobe/eslint-config-aio-lib-config v5 with
neostandard and ESLint 9 flat config.

oclif v4's parse() now calls config.runHook('preparse') before parsing,
so all tests that instantiate commands directly need a mock config with
runHook returning { successes: [] }.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@shazron shazron merged commit 974e804 into master Apr 9, 2026
9 checks passed
@shazron shazron deleted the chore/update-oclif-core-v4 branch April 9, 2026 03:48
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.

chore: update @oclif/core to latest version

2 participants