1.3.0 • Published 3 years ago
@reverecre/eslint-plugin-fontawesome
Licence
MIT
Version
1.3.0
Deps
1
Size
15 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
@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.