From be8836642a654207c9e0ac2a813403ca716ea754 Mon Sep 17 00:00:00 2001 From: darkingtail <51188676+darkingtail@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:06:44 +0800 Subject: [PATCH] fix: disable react-in-jsx-scope rule in oxlint config (#8682) After #8677 replaced ESLint with OxLint, the react-in-jsx-scope rule was not disabled. This causes all commits touching JSX files to fail the pre-commit hook (oxlint --deny-warnings). React 17+ uses automatic JSX runtime so explicit React imports are not required. Fixes #8681 --- .oxlintrc.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.oxlintrc.json b/.oxlintrc.json index 156569ec5..83ab91d8e 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -34,16 +34,20 @@ "storybook-static/**" ], "rules": { + "react/react-in-jsx-scope": "off", "react/prop-types": "off", "unicorn/filename-case": "off", "unicorn/no-null": "off", "unicorn/prevent-abbreviations": "off", - "no-unused-vars": ["warn", { - "argsIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "caughtErrorsIgnorePattern": "^_", - "destructuredArrayIgnorePattern": "^_", - "ignoreRestSiblings": true - }] + "no-unused-vars": [ + "warn", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_", + "destructuredArrayIgnorePattern": "^_", + "ignoreRestSiblings": true + } + ] } }