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) · 565 Bytes

server-common-absolute-import.md

File metadata and controls

25 lines (15 loc) · 565 Bytes

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

Always import code from server-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 "../../server-common/src/base/maybe";

Examples of correct code for this rule:

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

When Not To Use It

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