eslint-plugin-lucide
v1.1.2
Published
ESLint plugin for Lucide icons usage
Downloads
327
Maintainers
Readme
eslint-plugin-lucide
ESLint plugin for Lucide icons usage
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-lucide:
npm install eslint-plugin-lucide --save-devUsage
Add lucide to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["lucide"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"lucide/use-icon-suffix": "error"
}
}Rules
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 🔧 | | :----------------------------------------------- | :------------------------------------------------ | :-- | | use-icon-suffix | Disallow the use of icons without the suffix icon | 🔧 |
