Skip to content

[core] refactor: enable ESLint rule require-await and handle detected issues#4038

Merged
rejas merged 1 commit intoMagicMirrorOrg:developfrom
KristjanESPERANTO:require-await
Feb 25, 2026
Merged

[core] refactor: enable ESLint rule require-await and handle detected issues#4038
rejas merged 1 commit intoMagicMirrorOrg:developfrom
KristjanESPERANTO:require-await

Conversation

@KristjanESPERANTO
Copy link
Collaborator

@KristjanESPERANTO KristjanESPERANTO commented Feb 24, 2026

Enable the require-await ESLint rule. Async functions without await are just regular functions with extra overhead — marking them async adds implicit Promise wrapping, can hide missing return statements, and misleads readers into expecting asynchronous behavior where there is none.

While fixing the violations, I removed unnecessary async keywords from source files and from various test callbacks that never used await.

Remove unnecessary async keywords from functions that don't use await.
@KristjanESPERANTO KristjanESPERANTO marked this pull request as ready for review February 24, 2026 21:42
@rejas rejas merged commit 729f7f0 into MagicMirrorOrg:develop Feb 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants