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
The text was updated successfully, but these errors were encountered:
k-paxian
changed the title
Invalid languageOptions.globals object key "AudioWorkletGlobalScope "
Not compatible with eslint 9+. Invalid languageOptions.globals object key "AudioWorkletGlobalScope "
Jan 7, 2025
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
With latest eslint
9.17.0
They now validating the configs before applying them
So it fails to apply this plugin 🤷
Also it needs to be aligned with this new way of defining globals
https://eslint.org/docs/latest/use/configure/language-options#predefined-global-variables
The text was updated successfully, but these errors were encountered: