You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workaround. We shouldn't need these globals anyway
importpluginVueA11yfrom'eslint-plugin-vuejs-accessibility';consta11yConfig=pluginVueA11y.configs['flat/recommended'];a11yConfig.forEach((x)=>{// there seems to be problem with the globals.// We shouldn't need these anyways because we use typescript// to define global variables.// @ts-expect-error -- deleting is intentional here.deletex.languageOptions.globals;});
The actual fix for this is to update all versions of globals in your dependency tree, which you can typically do with npm update globals though you might need to "force" a higher major version to be used by explicitly adding globals as a dependency and then removing it again.
An indirect issue with eslint-plugin-vuejs-accessibility that would help prevent this is that they're using globals as an implicit dependency, which is why package managers don't help you here - this can be fixed by #1280 and/or #1299
Activity
[-]Invalid `languageOptions.globals` object key "AudioWorkletGlobalScope "[/-][+]Not compatible with eslint 9+. Invalid `languageOptions.globals` object key "AudioWorkletGlobalScope "[/+]irmantasluk commentedon Jan 10, 2025
I have the same issue, same error.
Pentadome commentedon Feb 25, 2025
workaround. We shouldn't need these globals anyway
globals
as a required peer dependency #1299G-Rath commentedon Mar 21, 2025
The actual fix for this is to update all versions of
globals
in your dependency tree, which you can typically do withnpm update globals
though you might need to "force" a higher major version to be used by explicitly addingglobals
as a dependency and then removing it again.Specifically, you want to not be using v13.12.1.
An indirect issue with
eslint-plugin-vuejs-accessibility
that would help prevent this is that they're usingglobals
as an implicit dependency, which is why package managers don't help you here - this can be fixed by #1280 and/or #1299