I have a function that takes data from server:
function getData(data){
console.log(data.someVar);
}
WebStorm says that someVar
To remove the warnings on The WebStorm IDE you can simply uncheck the inspection options for:
ps. this will remove the warnings on the IDE, but I don't think that is the best idea, because we will lost one of the best utilities in a IDE like Webstorm, which can worsen the quality of our code.
Even so, if you want to follow in the menu: File > Settings > Editor > Inspections we can disable the Javascript warnings
Like the following picture: