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:
Paul Coroneos
2024-11-22 09:22:48 -06:00
committed by GitHub
parent d9ba324d7f
commit 437bdcf9a9
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -17,8 +17,6 @@ module.exports = {
'eslint-plugin-react-compiler',
],
rules: {
// 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,
+1 -1
View File
@@ -224,7 +224,7 @@ export async function dynamicActivate(locale: AppLanguage) {
}
}
export async function useLocaleLanguage() {
export function useLocaleLanguage() {
const {appLanguage} = useLanguagePrefs()
useEffect(() => {
dynamicActivate(sanitizeAppLanguageSetting(appLanguage))