Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.24 KB

no-internal.md

File metadata and controls

38 lines (23 loc) · 1.24 KB

Disallow importing internal modules (rxjs-x/no-internal)

💼 This rule is enabled in the following configs: ✅ recommended, 🔒 strict.

🔧💡 This rule is automatically fixable by the --fix CLI option and manually fixable by editor suggestions.

This rule effects failures if an internal module is specified as the import location.

Rule details

Examples of incorrect code for this rule:

import { of } from "rxjs/internal/observable/of";

Examples of correct code for this rule:

import { of } from "rxjs";

When Not To Use It

If you need to import internal modules that are not covered by the public API, then you don't need this rule. However, keep in mind that internal modules may change without notice.

Further reading

Resources