sindresorhus/globals

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

オープン

#140 opened on 2018/08/28

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (132 件のフォーク)user submission
enhancementhelp wanted

Repository metrics

Stars
 (587 個のスター)
PR merge metrics
 (平均マージ 2h 48m) (30d で 3 merged PRs)

説明

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.

コントリビューターガイド