Skip to content

Conversation

@KristjanESPERANTO
Copy link
Collaborator

The config checker previously only allowed Node.js globals, but since the config file runs also in the browser context, users should be able to access browser APIs like document or window when needed.

This was incorrectly flagged as an error by the no-undef ESLint rule. The fix adds browser globals to the allowed globals in the linter config.

Fixes #3990.

The config checker previously only allowed Node.js globals, but since
the config file runs also in the browser context, users should
be able to access browser APIs like `document` or `window` when needed.

This was incorrectly flagged as an error by the `no-undef` ESLint rule.
The fix adds browser globals to the allowed globals in the linter config.

Fixes MagicMirrorOrg#3990
@rejas rejas merged commit 9d3b07d into MagicMirrorOrg:develop Dec 21, 2025
9 of 10 checks passed
@KristjanESPERANTO KristjanESPERANTO deleted the globals branch December 21, 2025 13:43
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