Skip to content

Commit dba2cab

Browse files
a-tokyoclaude
andcommitted
docs: fix stale "no DOM lib" comment in reactNative preset header
Addresses Copilot review: the header still said the tsconfig had no DOM lib, but it keeps DOM for the react-native-web target. Also spell the Hermes global `HermesInternal` to match the implementation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8007aae commit dba2cab

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎eslint/react-native.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// already enables exhaustive-deps / rules-of-hooks / Fast-Refresh checks) plus
44
// the SonarQube-compatibility layer. React Native ships no SonarQube-specific
55
// rules — it is just React + TS/JS — so the `react` guardrails apply verbatim;
6-
// this preset adds the RN runtime globals (`__DEV__`, Hermes) so they don't trip
7-
// `no-undef`, and a matching `tsconfig/react-native.json` (no DOM lib).
6+
// this preset adds the RN runtime globals (`__DEV__`, `HermesInternal`) so they
7+
// don't trip `no-undef`, and a matching `tsconfig/react-native.json` (which keeps
8+
// the DOM lib so react-native-web's web target type-checks — see docs).
89
//
910
// NOTE: the RN-specific style rules (no-inline-styles, no-color-literals,
1011
// no-unused-styles, split-platform-components, …) are intentionally NOT wired in

0 commit comments

Comments
 (0)