Skip to content

Commit abc4073

Browse files
committed
⬆️(frontend) update dependencies to fit eslint v10
Update dependencies and code to fit eslint v10.
1 parent 36b72f0 commit abc4073

File tree

4 files changed

+50
-310
lines changed

4 files changed

+50
-310
lines changed

src/frontend/apps/impress/src/features/docs/doc-export/utils_html.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export const improveHtmlAccessibility = (
299299
}
300300

301301
let previousSibling = item.previousElementSibling;
302-
let listContainer: HTMLElement | null = null;
302+
let listContainer: HTMLElement | null;
303303

304304
if (previousSibling?.tagName.toLowerCase() === 'ul') {
305305
listContainer = previousSibling as HTMLElement;
@@ -409,7 +409,7 @@ export const addMediaFilesToZip = async (
409409

410410
// Only download same-origin resources (internal media like /media/...).
411411
// External URLs keep their original src and are not included in the ZIP
412-
let url: URL | null = null;
412+
let url: URL | null;
413413
try {
414414
url = new URL(src, mediaUrl);
415415
} catch {

src/frontend/apps/impress/src/i18n/initI18n.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ let isInitialized = false;
1010

1111
// Initialize i18next with the base translations only once
1212
if (!isInitialized && !i18next.isInitialized) {
13+
// eslint-disable-next-line no-useless-assignment
1314
isInitialized = true;
1415

1516
i18next

src/frontend/packages/eslint-plugin-docs/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
"lint": "eslint"
1515
},
1616
"peerDependencies": {
17-
"eslint": ">=9.0.0"
17+
"eslint": ">=10.0.1"
1818
},
1919
"dependencies": {
20+
"@eslint/js": "10.0.1",
2021
"@next/eslint-plugin-next": "15.5.9",
2122
"@tanstack/eslint-plugin-query": "5.91.4",
22-
"@typescript-eslint/eslint-plugin": "8.55.0",
23-
"@typescript-eslint/parser": "8.55.0",
23+
"@typescript-eslint/eslint-plugin": "8.56.0",
24+
"@typescript-eslint/parser": "8.56.0",
25+
"@typescript-eslint/utils": "8.56.0",
2426
"@vitest/eslint-plugin": "1.6.9",
2527
"eslint-config-next": "15.5.9",
2628
"eslint-config-prettier": "10.1.8",

0 commit comments

Comments
 (0)