0.0.1 • Published 2 years ago

eslint-plugin-iconify-react v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-iconify-react

Disallow strings as the icon prop type in Iconify React components

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-iconify-react:

npm install eslint-plugin-iconify-react --save-dev

Usage

Add iconify-react to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["iconify-react"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "no-icon-string/rule-name": "warn"
  }
}

Supported Rules

  • no-icon-string