From ff5ad3825331b292fd869fda3555629329de008e Mon Sep 17 00:00:00 2001 From: Paul Coroneos Date: Tue, 19 Nov 2024 09:33:07 -0600 Subject: Leverage jsx transform to remove unnecessary react imports and update eslint config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled --- .eslintrc.js | 2 ++ 1 file changed, 2 insertions(+) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index 50365a09e..fefe4fa5b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,6 +3,7 @@ module.exports = { extends: [ '@react-native-community', 'plugin:react/recommended', + 'plugin:react/jsx-runtime', 'plugin:react-native-a11y/ios', 'prettier', ], @@ -19,6 +20,7 @@ module.exports = { // Temporary until https://github.com/facebook/react-native/pull/43756 gets into a release. 'prettier/prettier': 0, 'react/no-unescaped-entities': 0, + 'react/prop-types': 0, 'react-native/no-inline-styles': 0, 'bsky-internal/avoid-unwrapped-text': [ 'error', -- cgit 1.4.1