Skip to content

Fix a bunch of eslint and type-checker complaints#1626

Open
Arnei wants to merge 2 commits into
opencast:developfrom
Arnei:comment-eslint-exceptions
Open

Fix a bunch of eslint and type-checker complaints#1626
Arnei wants to merge 2 commits into
opencast:developfrom
Arnei:comment-eslint-exceptions

Conversation

@Arnei

@Arnei Arnei commented Jun 18, 2026

Copy link
Copy Markdown
Member

Fixes #469.

Looks at all the comments that are disabling eslint or typescript and either addresses the underlying issue or adds an additional comment on why disabling the respective rule is actually okay in that case.

How to test this

Nothing specific to test here, the code review is probably a lot more important.

Arnei added 2 commits June 17, 2026 16:12
Eslint exceptions in general should be avoided. If absolutely necessary,
they should at least have an explaining comment accompanying them.

This patch aims at achieving that.

Arguably some of the eslint exceptions I left in could still be removed,
but that would usually mean major programming effort.

Of note is that this patch includes `dispatch` in useEffect dependency
arrays, even if that useEffect hook should run
only once on mount. We can do that because dispatch is
stable, it's just that the lint rules can't know that. See also official
redux docs: https://react-redux.js.org/api/hooks
This removes a bunch of // @ts-expect-errors by fixing the respective
type issues.
@Arnei Arnei added type:typing Add typing type:code-enhancement Internal improvements to the codebase labels Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:code-enhancement Internal improvements to the codebase type:typing Add typing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get rid of linter and type-checker exceptions

1 participant