-
-
Notifications
You must be signed in to change notification settings - Fork 908
Supporting React Native 0.81.0, Updating Project Dependencies, Fixing ESLint and Typescript Warnings and Errors #3941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
whiteHatCip
wants to merge
3
commits into
rnmapbox:main
Choose a base branch
from
whiteHatCip:chore/prettier-eslint-typescript-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+1,032
−1,072
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 tasks
This was referenced Aug 25, 2025
24e1cc2
to
cd213b8
Compare
cd213b8
to
930ac32
Compare
930ac32
to
3d774d2
Compare
fd91f0e
to
2bd26df
Compare
fixing debounce usage in MapView component in the example app
Fixing eslint warnings in test files Fixing example app name by lowercasing it fix(tsconfig): prevent TypeScript from overwriting input files by enabling noEmit Removing not-needed eslint rule disable comment Fixing no-continue eslint warnings Removing unused import Fixing ESLint warnings in test files Fixing shadowed vars Fixing "eqeqeq" Removing unused vars Fixing typos Fixing "'react-native/Libraries/Types/CodegenTypes' React Native deep imports are deprecated." warnings replacing "import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';" with "import { codegenNativeComponent } from 'react-native';" This solves a deprecation warning for React Native deep imports, that should use top level import instead using array and objects destructuring Removing unused imports and constants removing unneeded commented code Suppressing (or fixing) ESLint warnings for explicit-any usages for UnsafeMixed types and others Updating autogenHelpers files
Restoring prettier functionality and fixing all warnings via yarn lint:fix Updating prettier to latest version Updating prettierrc.js rules making generateCodeWithEjs function an async function, to meet the new requirement from prettier.format which returns a Promise<string> in prettier v3
2bd26df
to
c422e6f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR contains no functional changes that affect the behavior of this library.
The dependencies and dev dependencies have been updated to their latest version. In addition to that, plenty of chore activities have been implemented, in order to make the library as clean as possible.
Because of the high amount of files changed, I advise you to review this PR using Google Chrome, as it seems that from Safari the Github UI hangs when entering the Files Changed tab
But still, this PR contains ONLY "cosmetic" changes to the code, driven by ESLint and prettier, by simply running
yarn lint
Checklist
CONTRIBUTING.md
yarn generate
in the root folder/example
app.Changes
tsconfig
settings (noEmit
,exclude
) to avoidTypeScript
errors about overwriting input files.ESLint
warnings (variable shadowing, no-continue and so on) by renaming loop variables and restructuring conditionals and everything else that would prevent ESLint/Typescript from complaining.expect
invocations are performed from within custom-made functions. These warnings have been fixed by updating the name of jest assert functions in the eslint configuration file.yarn lint:fix
after having the prettier plugin restored its functionality, and now prettier errors are properly caught byyarn lint
. Because of this, you will see so many files being changed by this PR