Skip to content
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

create new app i am getting this error #25638

Closed
keshav00001 opened this issue Jul 14, 2019 · 6 comments
Closed

create new app i am getting this error #25638

keshav00001 opened this issue Jul 14, 2019 · 6 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@keshav00001
Copy link

React Native version:

Steps To Reproduce

Describe what you expected to happen:

Snack, code example, or link to a repository:

@keshav00001
Copy link
Author

image

first time App run good but app.js file show warning.
image

@RobinCsl
Copy link

Hi @keshav00001,
From the little information you shared about your issue, I understand that you're unhappy that VSCode and ESLint give you warnings/errors regarding the starter code when it comes to running yarn lint.

I believe you have

"@react-native-community/eslint-config": "^0.0.5",

in your devDependencies.

If you revert to version 0.0.4, install your node_modules again, the errors should disappear.

Steps I used to reproduce

npx react-native-cli init MyCoolApp
cd MyCoolApp
yarn lint

Same linting errors were displayed.

"Fix"

yarn add -D @react-native-community/eslint-config@^0.0.4
yarn lint

No errors.


It might be useful to inquire what changed between version 0.0.4 and version 0.0.5 of @react-native-community/eslint-config.

@alexandrius
Copy link

I also experience the same problem. "Fix" above works for me as well

@keshav00001
Copy link
Author

Thanks for response @RobinCsl and @alexander Pataridze , i was following that way but i was getting the same error. When I eslint uninstall with VsCode then warning is not show.

@ecreeth
Copy link
Contributor

ecreeth commented Jul 15, 2019

@keshav00001 #25478 solves this problem.

Add .prettierrc file with:

{
 bracketSpacing: false,
 jsxBracketSameLine: true,
 singleQuote: true,
 trailingComma: 'all',
}

@iboldurev
Copy link

@keshav00001 #25478 solves this problem.

Add .prettierrc file with:

{
 bracketSpacing: false,
 jsxBracketSameLine: true,
 singleQuote: true,
 trailingComma: 'all',
}

@ecreeth This solved my problem, thanks

@facebook facebook locked as resolved and limited conversation to collaborators Oct 8, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants