Commit 44d1140
committed
[core] fix: allow browser globals in config files
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 #39901 parent 9c25b15 commit 44d1140
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments