Open fregante opened 6 days ago
Worker APIs should use self
self
I think self was chosen because there's no window, but globalThis should still be preferred there I think. Service workers introduction: 2014 globalThis introduction: 2019 I think using self in service workers is more of a historical artifact rather than a necessity.
I think self was chosen because there's no window, but globalThis should still be preferred there I think.
window
globalThis
I think using self in service workers is more of a historical artifact rather than a necessity.
_Originally posted by @fregante in https://github.com/sindresorhus/eslint-plugin-unicorn/pull/2410#discussion_r1779954389_
Agreed 👍
_Originally posted by @fregante in https://github.com/sindresorhus/eslint-plugin-unicorn/pull/2410#discussion_r1779954389_