`globals` should be an Object rather than an Array in API
See original GitHub issuehttp://eslint.org/docs/user-guide/configuring#specifying-globals
However, passing an Object to globals
fails in gulp-eslint:
TypeError: (options.globals || []).reduce is not a function
Issue Analytics
- State:
- Created 7 years ago
- Comments:13
Top Results From Across the Web
Does storing global objects into an array simply create a ...
As far as I know, inside the array will be 'references' to the original global objects you created, unless those are primitives like...
Read more >Data Structures: Objects and Arrays - Eloquent JavaScript
The elements in an array are stored as the array's properties, using numbers as property names. Because you can't use the dot notation...
Read more >Standard built-in objects - JavaScript - MDN Web Docs
This chapter documents all of JavaScript's standard, built-in objects, including their methods and properties. The term "global objects" (or ...
Read more >Globals - Jest
Globals. In your test files, Jest puts each of these methods and objects into the global environment. You don't have to require or...
Read more >JavaScript API — Version 0.21.3 - Pyodide
19, this function took the globals parameter as a positional argument rather than as a named argument. In v0.20 this will still work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Those are some pretty rude responses @shinnn. People are just trying to figure out how to fix their code.
@dpikt Thank you for sympathy. Yes, unfortunately, some people cannot be honest to admit their own mistake but just blame their ignorance for OSS maintainers.
Yeah, I hope everyone use StackOverflow for support questions and do not abuse OSS issue trackers. Probably the easiest trap for beginners to fall into though.
I’m going to lock this issue down. There will never be any productive discussion here.