When a module imports itself it has no effect. This means that the import statement does nothing useful and serves no purpose. This can happen
during refactoring or when a developer mistakenly imports the module itself.
To fix the problem remove the self-import statement.
// file: foo.js
import foo from './foo'; // Noncompliant
const foo = require('./foo'); // Noncompliant
// file: index.js
import index from '.'; // Noncompliant
const index = require('.'); // Noncompliant