If an import declaration's source is extraneous (it's not written in package.json), the program works in local, but will not work after dependencies are re-installed. It will cause troubles to your team/contributors. This rule disallows import declarations of extraneous modules.
// foo.js is outside the project directory
import module from '../../foo'
// foo.js has been moved to the project directory
import module from './foo'