@nelsonlaidev/eslint-plugin
v0.2.4
Published
Custom ESLint rules for Nelson Lai projects.
Downloads
852
Readme
@nelsonlaidev/eslint-plugin
Custom ESLint rules for Nelson Lai projects.
Installation
npm i -D @nelsonlaidev/eslint-pluginUsage
import nelsonlaidevPlugin from '@nelsonlaidev/eslint-plugin'
export default [
{
plugins: {
'@nelsonlaidev': nelsonlaidevPlugin,
},
rules: {
'@nelsonlaidev/lucide-icon-suffix': 'error',
},
},
]Rules
| Rule | Description | Fixable |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------- |
| lucide-icon-suffix | Enforce using the Icon suffixed version of lucide-react imports | Yes |
| lucide-restrict-import | Restrict specific imports from lucide-react and suggest preferred alternatives | Yes |
| shadcn-cn-wrap-variants | Enforce wrapping *Variants() calls inside cn() | Yes |
| shadcn-cva-variants-suffix | Enforce that variables assigned to cva() end with Variants | Yes |
| shadcn-prefer-spinner | Enforce using <Spinner /> instead of loader icons from lucide-react | No |
