I'm learning react-native, I've never had a lot of experience with JavaScript, I've installed the ESLint extension, and I'm trying to follow the script for the best syntax.
But there are two warnings that I could not remove and I can not understand why.
The first whenever I put a alert()
without importing the content
[eslint] 'alert' is not defined. (no-undef)
function alert(message?: any): void
The second does not require
<Image source={require('./imgs/logo.png')} />
Also regardless of content
[eslint] Unexpected require(). (global-require)
function require(name: string): any
The app works okay even with these warnings but I'd like to understand them