eslint-plugin-lucide-enforce-icon-imports
v1.0.0
Published
A simple eslint plugin that enforces importing lucide icons with their full name, suffixed with `Icon`, e.g. the `ShieldBan` icon must always be imported as `ShieldBanIcon`, etc. The plugin exposes only one rule `enforce-icon-suffix`.
Readme
Enforce Icon imports for lucide-react
A simple eslint plugin that enforces importing lucide icons with their full name, suffixed with Icon, e.g. the ShieldBan icon must always be imported as ShieldBanIcon, etc.
The plugin exposes only one rule enforce-icon-suffix.
Correct
import { ActivityIcon, RocketIcon, TerminalIcon } from "lucide-react";Incorrect
import { Activity } from "lucide-react";