deny-import-from-ionic-module
This plugin prevents accidental imports from @ionic/angular instead of @ionic/angular/standalone.
- ⭐️ This rule is included in
plugin:@rdlabo/rules/recommendedpreset.- ✒️ The
--fixoption 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.