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
This commit is contained in:
Paul Coroneos
2024-11-19 09:33:07 -06:00
committed by GitHub
parent cfc653a5f4
commit ff5ad38253
143 changed files with 55 additions and 148 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import React, {useCallback, useState} from 'react'
import {useCallback, useState} from 'react'
import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native'
import DatePicker from 'react-native-date-picker'
import {
+1 -1
View File
@@ -1,4 +1,4 @@
import React, {useCallback, useState} from 'react'
import {useCallback, useState} from 'react'
import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native'
// @ts-ignore types not available -prf
import {unstable_createElement} from 'react-native-web'
-1
View File
@@ -1,4 +1,3 @@
import React from 'react'
import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native'
import {choose} from '#/lib/functions'
+1 -1
View File
@@ -1,4 +1,4 @@
import React, {useState} from 'react'
import {useState} from 'react'
import {View} from 'react-native'
import {s} from '#/lib/styles'
@@ -1,4 +1,3 @@
import React from 'react'
import {Pressable, StyleProp, StyleSheet, ViewStyle} from 'react-native'
import {usePalette} from '#/lib/hooks/usePalette'
-1
View File
@@ -1,4 +1,3 @@
import React from 'react'
import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native'
import {choose} from '#/lib/functions'