Provides custom linting rules from Hunt Club.
$ yarn add -D eslint-plugin-hunt-club
Add it to your .eslintrc.js
:
module.exports = {
plugins: ['hunt-club'],
rules: {
'hunt-club/require-icon-postfix': 'error',
},
};
Require the Icon
postfix for all Lucide icon components
Examples of incorrect code for this rule:
import {Settings} from 'lucide-react';
Examples of correct code for this rule:
import {SettingsIcon} from 'lucide-react';
When you do not care which import alias is used for importing icons from
lucide-react
.
This rule was introduced in package version v0.1.0
MIT