Skip to content

Commit 4f35459

Browse files
authored
chore(deps): update @oclif/core to v4 and @adobe/eslint-config-aio-lib-config to v5 (#793)
- closes #792 - chore(deps): update @oclif/core to v4 and @adobe/eslint-config-aio-lib-config to v5 - Update @oclif/core from 2.16.0 to ^4.9.0 - Update @oclif/plugin-not-found from ^2.3.26 to ^3 (required for core v4) - Replace Config.plugins array access with Config.getPluginsList() (plugins is now a Map in v4) - Replace removed ux.table() with a new src/table.js helper using the same column API - Update @adobe/eslint-config-aio-lib-config from ^4.0.0 to ^5.0.0 (ESLint 9 + neostandard) - Migrate ESLint config from legacy .eslintrc.json files to flat config (eslint.config.js) - Update eslint from ^8 to ^9, swap old standard plugins for neostandard - Update eslint-plugin-jest from ^27 to ^28 for ESLint 9 compatibility - Update test mocks to add getPluginsList() and runHook() required by oclif core v4 - chore(ci): drop Node.js 18.x from CI matrix Node.js 18 reached EOL in April 2025. - fix(table): use string-width for ANSI-aware column width and padding - fix(table): remove unused strip-ansi direct dependency
1 parent 5ec3547 commit 4f35459

File tree

15 files changed

+1653
-1741
lines changed

15 files changed

+1653
-1741
lines changed

.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/daily-install-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
node: [18, 20, 22, 24]
17+
node: [20, 22, 24]
1818
os: [ubuntu-latest]
1919

2020
steps:

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
node-version: [18.x, 20.x, 22.x, 24.x]
18+
node-version: [20.x, 22.x, 24.x]
1919
os: [ubuntu-latest, windows-latest]
2020

2121
steps:

e2e/.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const aioLibConfig = require('@adobe/eslint-config-aio-lib-config')
2+
const jestPlugin = require('eslint-plugin-jest')
3+
4+
module.exports = [
5+
...aioLibConfig,
6+
{
7+
files: ['test/**/*.js', 'e2e/**/*.js'],
8+
...jestPlugin.configs['flat/recommended'],
9+
languageOptions: {
10+
...jestPlugin.configs['flat/recommended'].languageOptions,
11+
globals: {
12+
...jestPlugin.configs['flat/recommended'].languageOptions.globals,
13+
setFetchMock: true
14+
}
15+
},
16+
rules: {
17+
...jestPlugin.configs['flat/recommended'].rules,
18+
'n/no-unpublished-require': 0
19+
}
20+
}
21+
]

0 commit comments

Comments
 (0)