Remove unnecessary lint rule suppression (#6544)
* ▫️remove deprecated react native eslint package. add react hooks and modern native eslint package. fix bugs
* in retrospect lets just remove the async from uselocalelanguage
* finally clean it all up
* revert yarn.lock
* restore logic
This commit is contained in:
@@ -17,8 +17,6 @@ module.exports = {
|
|||||||
'eslint-plugin-react-compiler',
|
'eslint-plugin-react-compiler',
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
// Temporary until https://github.com/facebook/react-native/pull/43756 gets into a release.
|
|
||||||
'prettier/prettier': 0,
|
|
||||||
'react/no-unescaped-entities': 0,
|
'react/no-unescaped-entities': 0,
|
||||||
'react/prop-types': 0,
|
'react/prop-types': 0,
|
||||||
'react-native/no-inline-styles': 0,
|
'react-native/no-inline-styles': 0,
|
||||||
|
|||||||
+1
-1
@@ -224,7 +224,7 @@ export async function dynamicActivate(locale: AppLanguage) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function useLocaleLanguage() {
|
export function useLocaleLanguage() {
|
||||||
const {appLanguage} = useLanguagePrefs()
|
const {appLanguage} = useLanguagePrefs()
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dynamicActivate(sanitizeAppLanguageSetting(appLanguage))
|
dynamicActivate(sanitizeAppLanguageSetting(appLanguage))
|
||||||
|
|||||||
Reference in New Issue
Block a user