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

Latest commit

 

History

History
25 lines (15 loc) · 523 Bytes

common-absolute-import.md

File metadata and controls

25 lines (15 loc) · 523 Bytes

Import common/ from its absolute path (common-absolute-import)

Always import code from common/ from its absolute path.

Rule Details

This rule aims to ensure that autoimports always work in CI.

Autofixer available.

Examples of incorrect code for this rule:

import { Maybe } from "../../common/src/base/maybe";

Examples of correct code for this rule:

import { Maybe } from "common/base/maybe";

When Not To Use It

If you have correct import paths that look like "../common/src"