Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.01 KB

File metadata and controls

30 lines (19 loc) · 1.01 KB

@rdlabo/rules/deny-import-from-ionic-module

This plugin prevents accidental imports from @ionic/angular instead of @ionic/angular/standalone.

  • ✒️ The --fix option on the command line can automatically fix some of the problems reported by this rule.

Mixing imports from @ionic/angular and @ionic/angular/standalone can cause runtime issues. While the build process may succeed, the application might fail when running in the browser. This rule helps prevent such issues by enforcing consistent import paths.

Rule Details

❌ Incorrect: Importing from @ionic/angular

import { ModalController } from '@ionic/angular';

✅ Correct: Importing from @ionic/angular/standalone

import { ModalController } from '@ionic/angular/standalone';

Options

No Options.

Implementation