Skip to content

chore: update @oclif/core to v4 and migrate to ESLint 9#76

Open
shazron wants to merge 1 commit intomasterfrom
fix/issue-75-update-oclif-core
Open

chore: update @oclif/core to v4 and migrate to ESLint 9#76
shazron wants to merge 1 commit intomasterfrom
fix/issue-75-update-oclif-core

Conversation

@shazron
Copy link
Copy Markdown
Member

@shazron shazron commented Mar 25, 2026

Fixes #75

Summary

  • Upgrade @oclif/core from ^1.9.0 to ^4.9.0 and oclif CLI from ^3.2.0 to ^4.0.0
  • Migrate Command.args from array format to object map using Args builder (breaking change in @oclif/core v2+)
  • Pass mock config to Command constructors in tests (parse() now requires this.config.runHook in v4)
  • Upgrade @adobe/eslint-config-aio-lib-config from ^4.0.0 to ^5.0.0 (ESLint 9 + flat config)
  • Replace .eslintrc / .eslintrc.json with eslint.config.js (ESLint 9 flat config format)
  • Add neostandard ^0 (peer dep of eslint-config-aio-lib-config v5); remove packages now absorbed into it (eslint-config-standard, eslint-plugin-{import,n,node,promise}, eslint-config-oclif)

Test plan

  • All 26 unit tests pass (npm test)
  • ESLint passes clean with no warnings (eslint src test)
  • 100% code coverage maintained

Closes #75

🤖 Generated with Claude Code

- Upgrade @oclif/core from ^1.9.0 to ^4.9.0
- Upgrade oclif CLI from ^3.2.0 to ^4.0.0
- Migrate Command.args from array to object map using Args builder (breaking change in @oclif/core v2+)
- Pass mock config to Command constructors in tests (parse() now requires this.config.runHook in v4)
- Upgrade @adobe/eslint-config-aio-lib-config from ^4.0.0 to ^5.0.0
- Upgrade eslint from ^8 to ^9
- Replace .eslintrc/.eslintrc.json with eslint.config.js (ESLint 9 flat config)
- Add neostandard ^0 (peer dep of eslint-config-aio-lib-config v5)
- Remove eslint-config-standard, eslint-plugin-{import,n,node,promise} (absorbed into neostandard)
- Remove eslint-config-oclif (was unused in eslint config)
- Drop node/no-missing-require allowModules workaround (neostandard ships eslint-plugin-n v17 which supports exports field)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@shazron shazron changed the title chore: update @oclif/core to v4 and migrate to ESLint 9 (fixes #75) chore: update @oclif/core to v4 and migrate to ESLint 9 Mar 25, 2026
@@ -0,0 +1,24 @@
/*
Copyright 2019 Adobe. All rights reserved.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

year

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