I set up eslint in the editor, https://eslint.org/docs/user-guide/configuring#specifying-globals :
In my config it looks like this:
"eslint.enable": true, "eslint.options": { "globals": { "$": true, "moment": true }, ... With these settings, VS Code gives an error:
(options.globals || []).reduce is not a function How to configure eslint global config in VS Code?