chore: update eslint, enable more rules and fix their findings (#39438)

Update eslint and its plugins, enable more rules and fix their findings:

1. `unicorn/no-unsafe-string-replacement` found that uploading a file
whose name contains `$&` inserted a broken markdown link, because
`String#replace` expands such patterns in the replacement string
2. `@typescript-eslint/require-await` removes `async` from functions
that never await
3. Plugin rules not covered by a preset are now listed explicitly

---------

Co-authored-by: bircni <bircni@icloud.com>
This commit is contained in:
silverwindandbircni authored and GitHub committed 2026-09-26 07:20:39 +00:00
1 parent a15f032026
commit 857d3d3df3
35 files changed
+299 -197

No files matched your search

+6 -6
View File
@@ -80,17 +80,17 @@
"@types/sortablejs": "1.15.9",
"@types/swagger-ui-dist": "3.30.6",
"@types/toastify-js": "1.12.4",
"@typescript-eslint/parser": "8.70.0",
"@typescript-eslint/parser": "8.70.1",
"@vitejs/plugin-vue": "6.0.9",
"@vitest/browser-playwright": "5.0.1",
"@vitest/eslint-plugin": "1.6.27",
"eslint": "10.10.0",
"eslint": "10.11.0",
"eslint-import-resolver-typescript": "4.4.5",
"eslint-plugin-import-x": "4.17.1",
"eslint-plugin-playwright": "2.12.0",
"eslint-plugin-regexp": "3.3.0",
"eslint-plugin-unicorn": "75.0.0",
"eslint-plugin-vue": "10.11.0",
"eslint-plugin-regexp": "3.3.1",
"eslint-plugin-unicorn": "76.0.0",
"eslint-plugin-vue": "10.11.1",
"eslint-plugin-vue-scoped-css": "3.1.3",
"eslint-plugin-wc": "3.1.0",
"globals": "17.12.0",
@@ -107,7 +107,7 @@
"stylelint-value-no-unknown-custom-properties": "6.1.1",
"svgo": "4.1.0",
"typescript": "6.0.3",
"typescript-eslint": "8.70.0",
"typescript-eslint": "8.70.1",
"vitest": "5.0.1",
"vue-tsc": "3.3.11"
}