0.0.2 ⢠Published 2 years ago
eslint-plugin-lucide v0.0.2
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 | š§ |