Skip to content

Add react-native globals - #337

Merged
sindresorhus merged 3 commits into
sindresorhus:mainfrom
JasonWeinzierl:add-react-native
Aug 12, 2026
Merged

sindresorhus merged 3 commits into
sindresorhus:mainfrom
JasonWeinzierl:add-react-native

Conversation

@JasonWeinzierl

@JasonWeinzierl JasonWeinzierl commented Feb 22, 2026 •

Copy link
Copy Markdown
Contributor
Context https://github.com//pull/129 was previously rejected, but re-opening because it seems the policy of this repo has changed.

There is an existing package, but it has not been touched for years. https://github.com/react-native-community/eslint-plugin-react-native-globals

@sindresorhus

Copy link
Copy Markdown
Owner

There are a few missing React Native globals here:

  • React Native 0.84 unconditionally installs CharacterData, Document, DOMRect, DOMRectList, DOMRectReadOnly, Element, HTMLElement, HTMLCollection, Node, NodeList, and Text. Omitting them will cause no-undef errors for supported usage such as value instanceof Element.
  • The perfomance globals are missing Performance and TaskAttributionTiming. They are exposed by the same setup as the other Performance* globals already included here.
  • self is a documented React Native global and an alias for the global object, so it should be included too.

Could you add these and regenerate the generated output?

@JasonWeinzierl

Copy link
Copy Markdown
Contributor Author

Updated and PR description is updated too.

@sindresorhus
sindresorhus merged commit 61eafbf into sindresorhus:main Aug 12, 2026
5 checks passed
@JasonWeinzierl
JasonWeinzierl deleted the add-react-native branch August 12, 2026 11:18
markharding pushed a commit to futo-org/Harbor that referenced this pull request Oct 14, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [globals](https://github.com/sindresorhus/globals) | [`17.7.0` → `17.13.0`](https://renovatebot.com/diffs/npm/globals/17.7.0/17.13.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/globals/17.13.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/globals/17.7.0/17.13.0?slim=true) |

---

### Release Notes

<details>
<summary>sindresorhus/globals (globals)</summary>

### [`v17.13.0`](https://github.com/sindresorhus/globals/releases/tag/v17.13.0)

[Compare Source](sindresorhus/globals@v17.12.0...v17.13.0)

- Update globals (2026-10-01) ([#&#8203;354](sindresorhus/globals#354))  [`b007369`](sindresorhus/globals@b007369)

***

### [`v17.12.0`](https://github.com/sindresorhus/globals/releases/tag/v17.12.0)

[Compare Source](sindresorhus/globals@v17.11.0...v17.12.0)

- Update globals (2026-09-01) ([#&#8203;353](sindresorhus/globals#353))  [`50a2119`](sindresorhus/globals@50a2119)
- Add `__webpack_layer__` global ([#&#8203;351](sindresorhus/globals#351))  [`779a11a`](sindresorhus/globals@779a11a)

***

### [`v17.11.0`](https://github.com/sindresorhus/globals/releases/tag/v17.11.0)

[Compare Source](sindresorhus/globals@v17.10.0...v17.11.0)

- Add `react-native` globals ([#&#8203;337](sindresorhus/globals#337))  [`61eafbf`](sindresorhus/globals@61eafbf)

***

### [`v17.10.0`](https://github.com/sindresorhus/globals/releases/tag/v17.10.0)

[Compare Source](sindresorhus/globals@v17.9.0...v17.10.0)

- Add `GM_cookie` to Greasemonkey globals ([#&#8203;349](sindresorhus/globals#349))  [`f468407`](sindresorhus/globals@f468407)

***

### [`v17.9.0`](https://github.com/sindresorhus/globals/releases/tag/v17.9.0)

[Compare Source](sindresorhus/globals@v17.8.0...v17.9.0)

- Update globals (2026-08-01) ([#&#8203;348](sindresorhus/globals#348))  [`5a958ed`](sindresorhus/globals@5a958ed)

***

### [`v17.8.0`](https://github.com/sindresorhus/globals/releases/tag/v17.8.0)

[Compare Source](sindresorhus/globals@v17.7.0...v17.8.0)

- Update globals (2026-07-01) ([#&#8203;347](sindresorhus/globals#347))  [`7394811`](sindresorhus/globals@7394811)

***

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 9am on tuesday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzMuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjEzMy4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: https://code.futo.org/harbor/harbor/pulls/1813
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants