Skip to content

Ensures proper usage of Font Awesome imports

License

Notifications You must be signed in to change notification settings

RevereCRE/eslint-plugin-fontawesome

Repository files navigation

@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.

About

Ensures proper usage of Font Awesome imports

Resources

License

Stars

Watchers

Forks

Packages

No packages published