eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

no-index-import

ESLint plugin / no-index-import

Disallows “.” import.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/no-index-import": "error"
  }
};

Examples of incorrect code

import x from ".";

Examples of correct code

import x from "./folder";