Update linting rules and replace @ts-ignore with @ts-expect-error (#6636)

* Update linting rules and replace @ts-ignore with @ts-expect-error

* Add release notes for PR #6636

* Fix TypeScript linting issue by adding @ts-ignore for electron types in server start message

* Change category to Maintenance and update linting rules

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2026-01-13 22:53:14 +01:00
committed by GitHub
parent 5d82435700
commit 0c3a515e29
13 changed files with 22 additions and 20 deletions

View File

@@ -15,7 +15,7 @@
"vi": "readonly",
"backend": "readonly",
"importScripts": "readonly",
"FS": "readonly" // TODO: remove this
"FS": "readonly"
},
"rules": {
// TODO fix all these and re-enable
@@ -103,13 +103,7 @@
"jsx-a11y/scope": "warn",
// Typescript rules
"typescript/ban-ts-comment": [
"warn",
{
// TODO: remove this
"ts-ignore": "allow-with-description"
}
],
"typescript/ban-ts-comment": ["warn"],
"typescript/consistent-type-definitions": ["warn", "type"],
"typescript/consistent-type-imports": [
"warn",
@@ -190,7 +184,7 @@
// ESLint rules
"eslint/array-callback-return": "warn",
// "eslint/curly": ["warn", "multi-line", "consistent"], // TODO: re-enable? this rule is really slow
"eslint/curly": ["warn", "multi-line", "consistent"],
"eslint/default-case": [
"warn",
{