Idea doesn't mark not imported varriable as unresolved
已回答
Please, look at the picture. I have 2 files: constants.js and utils.js. In first file I export object CARS, in second file - I use variable CARS without "require('./constants')". Surprisingly but in first line Idea dowstn't mark variable as unresolved, but in second do. What the reason? I want Idea always mark not "required" (not imported) variables as unresolved.
请先登录再写评论。
Preference -> Editor -> Inspections -> Unresolved JavaScript Variable : enable " Report undeclared global variables as error"