Skip to content

huntclub/eslint-plugin-hunt-club

Repository files navigation

eslint-plugin-hunt-club

Provides custom linting rules from Hunt Club.

NPM Version NPM Downloads Validate License: MIT

Table of Contents

Installation

$ 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',
  },
};

Rules

hunt-club/require-icon-postfix

Require the Icon postfix for all Lucide icon components

Examples

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 Not To Use It

When you do not care which import alias is used for importing icons from lucide-react.

Version

This rule was introduced in package version v0.1.0

Futher Reading

Lucide Dev

License

MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •