From 28796e4b56b8d22ef2a1f000c177259e7420b4ed Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 25 Dec 2024 18:40:59 +0800 Subject: [PATCH] chore: fix eslint warning for react 19 (#52133) --- eslint.config.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index a01ed53012..60475aa728 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -62,6 +62,9 @@ export default antfu( 'perfectionist/sort-named-imports': 'off', 'perfectionist/sort-named-exports': 'off', 'regexp/strict': 'off', + /* turn off React 19 only rules */ + 'react/no-forward-ref': 'off', + 'react/no-context-provider': 'off', }, }, compat.configs['flat/recommended'],