Skip to content

Commit 5cca490

Browse files
authored
Dependencies | Update to TS 5.9.3, ESLint 9.39.1, Prettier 3.6.2 (#2214)
## What are you changing? - Update Typescript to 5.9.3 across all projects - Update to ESLint 9.39.1 across all projects - Update to Prettier 3.6.2 across all projects - Update from pnpm v8 -> v10 - Upgrade ESLint plugins to latest versions where possible - Use `eslint-plugin-storybook` in `@guardian/eslintconfig` - Fix any issues that arise as a result of the upgrades
2 parents b38b1da + 816eebd commit 5cca490

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+8165
-7031
lines changed

.changeset/clever-boats-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@guardian/browserslist-config': major
3+
---
4+
5+
- Peer Dependency: Update `tslib` to `2.8.1`

.changeset/four-suns-fold.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@guardian/prettier': major
3+
---
4+
5+
- Peer Dependency: Update `prettier` to `3.6.2`
6+
- Peer Dependency: Update `tslib` to `2.8.1`

.changeset/little-papers-attend.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@guardian/ab-react': major
3+
'@guardian/identity-auth': major
4+
'@guardian/identity-auth-frontend': major
5+
'@guardian/newsletter-types': major
6+
'@guardian/core-web-vitals': major
7+
'@guardian/react-crossword': major
8+
'@guardian/ab-core': major
9+
'@guardian/source': major
10+
'@guardian/source-development-kitchen': major
11+
'@guardian/libs': major
12+
---
13+
14+
- Peer Dependency: Update `typescript` to `5.9.3`
15+
- Peer Dependency: Update `tslib` to `2.8.1`

.changeset/two-mugs-relax.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@guardian/eslint-config': major
3+
---
4+
5+
- Peer Dependency: Update `eslint` to `9.39.1`
6+
- Add storybook configuration from `eslint-plugin-storybook` to config
7+
8+
```ts
9+
import guardian from '@guardian/eslint-config';
10+
11+
const config = [
12+
// other eslint configuration
13+
14+
...guardian.configs.storybook,
15+
];
16+
17+
export default config;
18+
```

apps/github-pages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@guardian/libs": "workspace:*",
1616
"astro": "5.15.1",
1717
"svelte": "5.43.2",
18-
"typescript": "5.5.2",
18+
"typescript": "5.9.3",
1919
"wireit": "0.14.12"
2020
},
2121
"wireit": {

apps/storybooks/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"devDependencies": {
1010
"@emotion/react": "11.11.4",
1111
"@guardian/source": "workspace:*",
12-
"@storybook/addon-a11y": "10.0.5",
13-
"@storybook/addon-docs": "10.0.5",
14-
"@storybook/addon-links": "10.0.5",
15-
"@storybook/react-vite": "10.0.5",
12+
"@storybook/addon-a11y": "10.0.6",
13+
"@storybook/addon-docs": "10.0.6",
14+
"@storybook/addon-links": "10.0.6",
15+
"@storybook/react-vite": "10.0.6",
1616
"@types/react": "18.2.79",
1717
"react": "18.2.0",
1818
"react-dom": "18.2.0",
19-
"storybook": "10.0.5",
19+
"storybook": "10.0.6",
2020
"wireit": "0.14.12"
2121
},
2222
"wireit": {

libs/@guardian/ab-core/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
In order to update your code to work identically, you must now provide the
5858
following keys to the constructor’s argument. They are listed here along with
5959
the fallbacks previously applied:
60-
6160
- `serverSideTests` → `{}`
6261
- `errorReporter` → `() => undefined`
6362
- `ophanRecord` → `() => undefined`

libs/@guardian/ab-core/eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import guardian from '@guardian/eslint-config';
22

3-
export default [
3+
/** @type {import('eslint').Linter.Config} */
4+
const config = [
45
...guardian.configs.recommended,
56
...guardian.configs.jest,
67
{
@@ -11,3 +12,5 @@ export default [
1112
],
1213
},
1314
];
15+
16+
export default config;

libs/@guardian/ab-core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
"devDependencies": {
3333
"@guardian/eslint-config": "workspace:*",
3434
"@types/jest": "30.0.0",
35-
"eslint": "9.19.0",
35+
"eslint": "9.39.1",
3636
"jest": "30.0.5",
3737
"jest-environment-jsdom": "30.2.0",
3838
"rollup": "4.52.5",
3939
"ts-jest": "29.4.0",
40-
"tslib": "2.6.2",
41-
"typescript": "5.5.2",
40+
"tslib": "2.8.1",
41+
"typescript": "5.9.3",
4242
"wireit": "0.14.12"
4343
},
4444
"peerDependencies": {
45-
"tslib": "^2.6.2",
46-
"typescript": "~5.5.2"
45+
"tslib": "^2.8.1",
46+
"typescript": "~5.9.3"
4747
},
4848
"peerDependenciesMeta": {
4949
"typescript": {

libs/@guardian/ab-react/eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import guardian from '@guardian/eslint-config';
22

3-
export default [
3+
/** @type {import('eslint').Linter.Config} */
4+
const config = [
45
...guardian.configs.recommended,
56
...guardian.configs.jest,
67
...guardian.configs.react,
@@ -12,3 +13,5 @@ export default [
1213
],
1314
},
1415
];
16+
17+
export default config;

0 commit comments

Comments
 (0)