Skip to content

chore: update @oclif/core to v4 and eslint-config to v5 - #73

Merged
shazron merged 3 commits into
mainfrom
feat/ACNA-4421-update-oclif-core-v4
Apr 7, 2026
Merged

chore: update @oclif/core to v4 and eslint-config to v5#73
shazron merged 3 commits into
mainfrom
feat/ACNA-4421-update-oclif-core-v4

Conversation

@shazron

@shazron shazron commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Changes

@oclif/core v4 migration

  • Replace deprecated CliUx.ux.table (removed in v3+) with cli-table3
  • Convert static args from array to object format using Args.string() (v4 requirement)
  • Update BaseCommand.args from [] to {}
  • Add runHook mock to test config objects — v4's parse() now calls this.config.runHook('preparse', ...)

ESLint v5 config / ESLint 9 migration

  • Replace .eslintrc.json with eslint.config.js (ESLint 9 flat config)
  • Update eslint from ^8 to ^9
  • Add neostandard peer dependency (replaces eslint-config-standard and related plugins)
  • Remove obsolete plugins now bundled by neostandard: eslint-config-oclif, eslint-config-standard, eslint-plugin-import, eslint-plugin-n, eslint-plugin-node, eslint-plugin-promise, eslint-plugin-standard, acorn
  • Update eslint-plugin-jest to ^29 for ESLint 9 flat config support
  • Remove --ext .js from lint scripts (flag removed in ESLint 9)

Test plan

  • All 149 unit tests pass with 100% coverage
  • Lint passes cleanly with no errors

🤖 Generated with Claude Code

- Update @oclif/core from ^1.9.3 to ^4.9.0
- Replace deprecated CliUx.ux with cli-table3 for table rendering
  (ux.table was removed in @oclif/core v3+)
- Convert static args from array to object format using Args.string()
  (v4 requires object format for command args)
- Update BaseCommand.args from [] to {} for v4 compatibility
- Add runHook mock to test config objects (required by v4's parse())
- Update @adobe/eslint-config-aio-lib-config from ^4.0.0 to 5.0.0
- Migrate from .eslintrc.json to eslint.config.js (ESLint 9 flat config)
- Update eslint from ^8 to ^9, add neostandard peer dep
- Remove obsolete ESLint plugins now bundled by neostandard
- Drop --ext flag from lint scripts (removed in ESLint 9)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@shazron shazron changed the title ACNA-4421 | chore: update @oclif/core to v4 and eslint-config to v5 chore: update @oclif/core to v4 and eslint-config to v5 Mar 26, 2026
@shazron
shazron merged commit b5bc23c into main Apr 7, 2026
8 checks passed
@shazron
shazron deleted the feat/ACNA-4421-update-oclif-core-v4 branch April 7, 2026 11:59
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