Skip to content

Commit

Permalink
Remove unnecessary lint rule suppression (#6544)
Browse files Browse the repository at this point in the history
* ▫️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
  • Loading branch information
PaulACoroneos authored Nov 22, 2024
1 parent d9ba324 commit 437bdcf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/locale/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export async function dynamicActivate(locale: AppLanguage) {
}
}

export async function useLocaleLanguage() {
export function useLocaleLanguage() {
const {appLanguage} = useLanguagePrefs()
useEffect(() => {
dynamicActivate(sanitizeAppLanguageSetting(appLanguage))
Expand Down

0 comments on commit 437bdcf

Please sign in to comment.