question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`globals` should be an Object rather than an Array in API

See original GitHub issue

http://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:closed
  • Created 7 years ago
  • Comments:13

github_iconTop GitHub Comments

2reactions
dpiktcommented, Nov 28, 2017

Those are some pretty rude responses @shinnn. People are just trying to figure out how to fix their code.

0reactions
shinnncommented, Dec 1, 2017

Those are some pretty rude responses

@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.

People are just trying to figure out how to fix their code.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found