-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Warning from typescript-estree when using typescript template #28162
Comments
At install time, you also see the earlier warning of: And investigating the package-lock.json clearly shows the requirement for the older versions of the @typescript-eslint/eslint-plugin and @typescript-eslint/parser packages:
|
This PR may solve the issue. #27319 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Description:
We are getting the following error when using eslint for our project bootstrapped by React Native Template TypeScript:
After investigation, I found that this was caused by the eslint plugin @react-native-community/eslint-config in the React Native Template TypeScript
package.json
dependency.In the
package.json
of the plugin eslint-config-react-native-community, it used quite old version^1.5.0
for both @typescript-eslint/eslint-plugin and @typescript-eslint/parser, which supports up totypescript <3.6.0
.But both @typescript-eslint/eslint-plugin and @typescript-eslint/parser have latest versions of
^2.20.0
which supportstypescript >=3.2.1 <3.8.0
.It might be better to make sure that the typescript version is in the range specified by @react-native-community/eslint-config in the React Native Template TypeScript (maybe pin the typescript version in the template is a way?).
Besides, it would also be needed to update the @typescript-eslint/eslint-plugin and @typescript-eslint/parser version in @react-native-community/eslint-config
package.json
more frequently to ensure that they include more latest typescript version.React Native version:
Steps To Reproduce
npx react-native init MyApp --template react-native-template-typescript
yarn lint
Expected Results
Snack, code example, screenshot, or link to a repository:
Similar issue in Create React App: facebook/create-react-app#7255
The text was updated successfully, but these errors were encountered: