1.3.0 • Published 1 year ago

@reverecre/eslint-plugin-fontawesome v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@reverecre/eslint-plugin-fontawesome

Ensures proper usage of Font Awesome imports

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @reverecre/eslint-plugin-fontawesome:

npm install @reverecre/eslint-plugin-fontawesome --save-dev

Usage

Add @reverecre/fontawesome to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["@reverecre/fontawesome"]
}

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

{
  "rules": {
    "@reverecre/fontawesome/shakeable-imports": 2
  }
}

Supported Rules

@reverecre/fontawesome/shakeable-imports

Ensures all Font Awesome icon imports can be tree shaken by Next.js.