Skip to content

chore: upgrade @oclif/core to v4 and eslint to v9 with flat config#34

Open
shazron wants to merge 1 commit intomasterfrom
feat/update-oclif-core-v4
Open

chore: upgrade @oclif/core to v4 and eslint to v9 with flat config#34
shazron wants to merge 1 commit intomasterfrom
feat/update-oclif-core-v4

Conversation

@shazron
Copy link
Member

@shazron shazron commented Mar 25, 2026

Fixes #33

Summary

  • Upgrades @oclif/core from v1 to v4, fixing #33
  • Updates args definition to v4 object format (breaking API change from v1)
  • Adds ignoreStdin: true to the state arg — oclif v4 now tries to read missing args from stdin using a setTimeout timeout; without this, jest.useFakeTimers() causes test hangs on the second parse call
  • Upgrades @adobe/eslint-config-aio-lib-config to 5.0.0, which moves to ESLint v9 flat config with neostandard
  • Replaces .eslintrc with eslint.config.js (ESLint v9 flat config format)
  • Removes eslint plugins now bundled by neostandard; upgrades eslint-plugin-jest to v28
  • Updates test/index.test.js to provide a mockConfig with runHook (required by oclif v4's parse()) and mocks @adobe/aio-lib-core-config

Test plan

  • All 25 tests pass with 100% coverage
  • ESLint passes with no errors
  • npm test succeeds end-to-end

🤖 Generated with Claude Code

- Upgrade @oclif/core from ^1.3.4 to ^4 (closes #33)
- Update args definition from array to object format (oclif v4 API)
- Add ignoreStdin: true to state arg to prevent test hangs with fake timers
- Upgrade @adobe/eslint-config-aio-lib-config to 5.0.0 (ESLint v9 flat config)
- Replace .eslintrc with eslint.config.js for ESLint v9 flat config
- Upgrade eslint from ^8 to ^9, add neostandard peer dep
- Remove eslint plugins now bundled by neostandard
- Update test/index.test.js: add mockConfig with runHook and mock @adobe/aio-lib-core-config

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@shazron shazron changed the title feat: upgrade @oclif/core to v4 and eslint to v9 with flat config chore: upgrade @oclif/core to v4 and eslint to v9 with flat config Mar 25, 2026
@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

1 participant