sindresorhus/globals

Copy missing globals from `builtin` to `es*`

Aperta

#140 aperta il 28 ago 2018

 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (132 fork)user submission
enhancementhelp wanted

Metriche repository

Star
 (587 stelle)
Metriche merge PR
 (Merge medio 2h 48m) (3 PR mergiate in 30 g)

Descrizione

While investigating why eslint wouldn't pick up the BigInt globals, I noticed eslint does not use builtin like I previously assumed. I'd like to propose to copy any globals missing in either es5, es2015, es2017 but present in builtin to one of those respective environments.

Afterwards, I'd copy back any potential globals from the es* categories to builtin so that it ends up containing all globals from those categories. Alternatively, builtincould be generated dynamically in index.js, I think actually, that'd be my preference to avoid future inconsistency.

Guida contributor