Idea doesn't mark not imported varriable as unresolved

Answered

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.

0
1 comment

Preference -> Editor -> Inspections -> Unresolved JavaScript Variable : enable " Report undeclared global variables  as error"

0

Please sign in to leave a comment.