sindresorhus/globals

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

開放

#140 建立於 2018年8月28日

 (4 則留言) (0 個反應) (0 位負責人)JavaScript (132 個分叉)user submission
enhancementhelp wanted

倉庫指標

星標
 (587 顆星)
PR 合併指標
 (平均合併 41天 6小時) (30 天內合併 5 個 PR)

描述

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.

貢獻者指南