Enforces importing index file with .
instead of ./
, ./index
or ./index.js
.
const m = require('./');
const m = require('../');
const m = require('./index');
const m = require('./index.js');
const m = require('./foo/index.js');
const m = require('@foo/bar/index');
import m from './';
import m from './index';
const m = require('.');
const m = require('..');
const m = require('./foo');
const m = require('@foo/bar');
import m from '.';