Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 356 Bytes

no-self-import.md

File metadata and controls

27 lines (18 loc) · 356 Bytes

no-self-import

A package should not import components of itself using a globally-qualified name; it should use relative imports instead.

Bad:

import foo from "this-package/foo.d.ts";

Good:

import foo from "./foo.d.ts";

Bad:

import myself from "this-package";

Good:

import myself from ".";