sindresorhus/globals

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

开放

#140 创建于 2018年8月28日

 (4 条评论) (0 个反应) (0 位负责人)JavaScript (132 个派生)user submission
enhancementhelp wanted

仓库指标

星标
 (587 个星标)
PR 合并指标
 (平均合并 2小时 48分钟) (30 天内合并 3 个 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.

贡献者指南