Skip to content

Commit b00e817

Browse files
committed
fix: filter browser globals to exclude keys with spaces and restore AudioWorkletGlobalScope
- Updated `eslint.config.mjs` to exclude browser global keys containing spaces. - Explicitly restored `AudioWorkletGlobalScope` from browser globals with corrected naming.
1 parent 20003cc commit b00e817

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eslint.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ export default [
2828
ecmaVersion: 2020,
2929
sourceType: "module",
3030
globals: {
31-
...globals.browser,
31+
...Object.fromEntries(
32+
Object.entries(globals.browser).filter(([key]) => !key.includes(' '))
33+
),
3234
...globals.node,
35+
// Add back the corrected AudioWorkletGlobalScope without whitespace
36+
AudioWorkletGlobalScope: globals.browser['AudioWorkletGlobalScope '],
3337
},
3438
parser: tseslint.parser,
3539
parserOptions: {

0 commit comments

Comments
 (0)