Skip to content

Commit 4533d35

Browse files
nicolethoenclaude
andcommitted
chore: Upgrade to Node 22, Yarn 4, ESLint 9 flat config, and bump dependencies
- Update to Node 22 (.nvmrc) and Yarn 4 (corepack + packageManager field) - Add .yarnrc.yml with nodeLinker: node-modules - Migrate ESLint from legacy .eslintrc.json to flat config (eslint.config.mjs) - Upgrade ESLint 8 -> 9, replace deprecated eslint-plugin-markdown with @eslint/markdown - Remove unused deps: eslint-config-standard-with-typescript, eslint-plugin-{import,n,promise,prettier} - Bump @babel/core, @testing-library/*, jest 30, typescript 5, prettier 3, rimraf 6 - Fix type issues: Object -> object, Function -> () => void - Update GitHub Actions: checkout v4, setup-node v4, corepack enable, --immutable - Bump patternfly-a11y to v5 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 261522c commit 4533d35

File tree

16 files changed

+19729
-12511
lines changed

16 files changed

+19729
-12511
lines changed

.eslintignore

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

.eslintrc-md.json

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

.eslintrc.json

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

.github/workflows/build-lint-test.yml

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,34 @@ jobs:
77
env:
88
GH_PR_NUM: ${{ github.event.number }}
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- run: |
12-
if [[ ! -z "${GH_PR_NUM}" ]]; then
12+
if [[ ! -z "${GH_PR_NUM}" ]]; then
1313
echo "Checking out PR"
1414
git fetch origin pull/$GH_PR_NUM/head:tmp
1515
git checkout tmp
1616
fi
17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: '18'
19+
node-version-file: '.nvmrc'
20+
- run: corepack enable
2021
- uses: actions/cache@v4
2122
id: yarn-cache
2223
name: Cache npm deps
2324
with:
2425
path: |
2526
node_modules
2627
**/node_modules
27-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
28-
- run: yarn install --frozen-lockfile
28+
key: ${{ runner.os }}-yarn-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
29+
- run: yarn install --immutable
2930
if: steps.yarn-cache.outputs.cache-hit != 'true'
3031
- uses: actions/cache@v4
3132
id: dist
3233
name: Cache dist
3334
with:
3435
path: |
3536
packages/*/dist
36-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
37+
key: ${{ runner.os }}-dist-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
3738
- name: Build dist
3839
run: yarn build
3940
if: steps.dist.outputs.cache-hit != 'true'
@@ -43,32 +44,33 @@ jobs:
4344
GH_PR_NUM: ${{ github.event.number }}
4445
needs: build
4546
steps:
46-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v4
4748
- run: |
48-
if [[ ! -z "${GH_PR_NUM}" ]]; then
49+
if [[ ! -z "${GH_PR_NUM}" ]]; then
4950
echo "Checking out PR"
5051
git fetch origin pull/$GH_PR_NUM/head:tmp
5152
git checkout tmp
5253
fi
53-
- uses: actions/setup-node@v3
54+
- uses: actions/setup-node@v4
5455
with:
55-
node-version: '20'
56+
node-version-file: '.nvmrc'
57+
- run: corepack enable
5658
- uses: actions/cache@v4
5759
id: yarn-cache
5860
name: Cache npm deps
5961
with:
6062
path: |
6163
node_modules
6264
**/node_modules
63-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
64-
- run: yarn install --frozen-lockfile
65+
key: ${{ runner.os }}-yarn-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
66+
- run: yarn install --immutable
6567
if: steps.yarn-cache.outputs.cache-hit != 'true'
6668
- uses: actions/cache@v4
6769
id: lint-cache
6870
name: Load lint cache
6971
with:
7072
path: '.eslintcache'
71-
key: ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
73+
key: ${{ runner.os }}-lint-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
7274
- name: ESLint
7375
run: yarn lint:js
7476
- name: MDLint
@@ -79,17 +81,18 @@ jobs:
7981
GH_PR_NUM: ${{ github.event.number }}
8082
needs: build
8183
steps:
82-
- uses: actions/checkout@v2
84+
- uses: actions/checkout@v4
8385
# Yes, we really want to checkout the PR
8486
- run: |
85-
if [[ ! -z "${GH_PR_NUM}" ]]; then
87+
if [[ ! -z "${GH_PR_NUM}" ]]; then
8688
echo "Checking out PR"
8789
git fetch origin pull/$GH_PR_NUM/head:tmp
8890
git checkout tmp
8991
fi
90-
- uses: actions/setup-node@v3
92+
- uses: actions/setup-node@v4
9193
with:
92-
node-version: '20'
94+
node-version-file: '.nvmrc'
95+
- run: corepack enable
9396
- uses: actions/cache@v4
9497
id: yarn-cache
9598
name: Cache npm deps
@@ -98,8 +101,8 @@ jobs:
98101
node_modules
99102
**/node_modules
100103
~/.cache/Cypress
101-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
102-
- run: yarn install --frozen-lockfile
104+
key: ${{ runner.os }}-yarn-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
105+
- run: yarn install --immutable
103106
if: steps.yarn-cache.outputs.cache-hit != 'true'
104107
- uses: actions/cache@v4
105108
id: dist
@@ -108,7 +111,7 @@ jobs:
108111
path: |
109112
packages/*/dist
110113
packages/react-styles/css
111-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
114+
key: ${{ runner.os }}-dist-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
112115
- name: Build dist
113116
run: yarn build
114117
if: steps.dist.outputs.cache-hit != 'true'
@@ -120,17 +123,18 @@ jobs:
120123
GH_PR_NUM: ${{ github.event.number }}
121124
needs: build
122125
steps:
123-
- uses: actions/checkout@v2
126+
- uses: actions/checkout@v4
124127
# Yes, we really want to checkout the PR
125128
- run: |
126-
if [[ ! -z "${GH_PR_NUM}" ]]; then
129+
if [[ ! -z "${GH_PR_NUM}" ]]; then
127130
echo "Checking out PR"
128131
git fetch origin pull/$GH_PR_NUM/head:tmp
129132
git checkout tmp
130133
fi
131-
- uses: actions/setup-node@v3
134+
- uses: actions/setup-node@v4
132135
with:
133-
node-version: '20'
136+
node-version-file: '.nvmrc'
137+
- run: corepack enable
134138
- uses: actions/cache@v4
135139
id: yarn-cache
136140
name: Cache npm deps
@@ -139,8 +143,8 @@ jobs:
139143
node_modules
140144
**/node_modules
141145
~/.cache/Cypress
142-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
143-
- run: yarn install --frozen-lockfile
146+
key: ${{ runner.os }}-yarn-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
147+
- run: yarn install --immutable
144148
if: steps.yarn-cache.outputs.cache-hit != 'true'
145149
- uses: actions/cache@v4
146150
id: dist
@@ -149,7 +153,7 @@ jobs:
149153
path: |
150154
packages/*/dist
151155
packages/react-styles/css
152-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
156+
key: ${{ runner.os }}-dist-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
153157
- name: Build dist
154158
run: yarn build
155159
if: steps.dist.outputs.cache-hit != 'true'

.github/workflows/build.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
env:
88
GH_PR_NUM: ${{ github.event.number }}
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- run: |
12-
if [[ ! -z "${GH_PR_NUM}" ]]; then
12+
if [[ ! -z "${GH_PR_NUM}" ]]; then
1313
echo "Checking out PR"
1414
git fetch origin pull/$GH_PR_NUM/head:tmp
1515
git checkout tmp
@@ -25,31 +25,32 @@ jobs:
2525
packages/*/package.json
2626
packages/*/patternfly-docs/content/**
2727
packages/*/patternfly-docs/generated/**
28-
key: ${{ runner.os }}-setup-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package.json', 'packages/module/package.json') }}
28+
key: ${{ runner.os }}-setup-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package.json', 'packages/module/package.json') }}
2929
- name: Run build script
3030
run: ./devSetup.sh
3131
shell: bash
3232
if: steps.setup-cache.outputs.cache-hit != 'true'
33-
- uses: actions/setup-node@v3
33+
- uses: actions/setup-node@v4
3434
with:
35-
node-version: '18'
35+
node-version-file: '.nvmrc'
36+
- run: corepack enable
3637
- uses: actions/cache@v4
3738
id: yarn-cache
3839
name: Cache npm deps
3940
with:
4041
path: |
4142
node_modules
4243
**/node_modules
43-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
44-
- run: yarn install --frozen-lockfile
44+
key: ${{ runner.os }}-yarn-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
45+
- run: yarn install --immutable
4546
if: steps.yarn-cache.outputs.cache-hit != 'true'
4647
- uses: actions/cache@v4
4748
id: dist
4849
name: Cache dist
4950
with:
5051
path: |
5152
packages/*/dist
52-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
53+
key: ${{ runner.os }}-dist-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
5354
- name: Build dist
5455
run: yarn build
55-
if: steps.dist.outputs.cache-hit != 'true'
56+
if: steps.dist.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)