From 7a255eacaac82ff04c59df9f9cba58e9690a339f Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Thu, 11 Jun 2026 19:52:08 -0400 Subject: [PATCH] fix(13-01): disable react/react-in-jsx-scope for React 19 JSX transform SC-1 smoke revealed flat.recommended enables react/react-in-jsx-scope (error), while the legacy recommended disables it. This codebase uses jsx:"react-jsx" (React 17+ automatic transform) so React does not need to be in scope. Disable the rule explicitly alongside react/prop-types in the pwa-react config block. Also proved both gate halves: - pnpm lint exits 1 on no-floating-promises deliberate violation (SC-1 lint) - pnpm format:check exits 1 listing _format-gate-test.ts (SC-1 format) Both throwaway files deleted; neither staged nor committed. --- eslint.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 42e9ac9..e89a110 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -59,6 +59,9 @@ export default tseslint.config( rules: { // TypeScript props typing supersedes prop-types in React 19 (RESEARCH Open Question 2) 'react/prop-types': 'off', + // React 19 uses the automatic JSX transform (jsx: "react-jsx") — React does not + // need to be in scope. The flat.recommended config enables this rule; we disable it. + 'react/react-in-jsx-scope': 'off', }, },