2
I am learning React-Native, I have never had much experience with Javascript, I have installed the Eslint extension and I am trying to follow the line looking for the best syntax.
But there are two warnings I couldn’t get rid of and I can’t understand why.
The first every time I put one alert()
no matter the content
[eslint] 'alert' is not defined. (no-undef)
function alert(message?: any): void
The second no require
<Image source={require('./imgs/logo.png')} />
Also no matter the content
[eslint] Unexpected require(). (global-require)
function require(name: string): any
The app works ok even with these warnings but would like to understand them
I understood, but in mine
.eslintrc.json
have only that{
 "extends": "rallycoding"
}
– Mateus
And when I put it like that you said just make mistakes
– Mateus
@Matthew in this case the file should look like this:
{"extends":"rallycoding","env":{"browser":true,"commonjs":true,"es6":true,"node":true}}
– Sergio
Thanks now it worked out
– Mateus