eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

no-relative-parent-import

ESLint plugin / no-relative-parent-import

Disallows relative parent import.

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

Examples of incorrect code

import x from "../source";

Examples of correct code

import x from "./source";