eslint-plugin-lucide
v0.0.2
Published
ESLint plugin for Lucide icons usage
Downloads
10
Maintainers
Readme
eslint-plugin-lucide
ESLint plugin for Lucide icons usage
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-lucide
:
npm install eslint-plugin-lucide --save-dev
Usage
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/rule-name": 2
}
}
Rules
🔧 Automatically fixable by the --fix
CLI option.
| Name | Description | 🔧 | | :------------------------------------------------------------- | :------------------------------------------------ | :-- | | no-icon-without-suffix | Disallow the use of icons without the suffix icon | 🔧 |