ESLint plugin for Remeda library.
npm install eslint-plugin-remedaESLint plugin for Remeda.
This plugin was originally derived from eslint-plugin-lodash-f (fork of eslint-plugin-lodash) and used that as a base to build upon.
First, you'll first need to install ESLint:
``sh`
pnpm add -D eslint
Next, install eslint-plugin-remeda:
`sh`
pnpm add -D eslint-plugin-remeda
Enable all of the rules that you would like to use. All rules are off by default, unless you use one of the plugin's configurations which turn all relevant rules on.
š¼ Configurations enabled in.\
ā
Set in the recommended configuration.\--fix` CLI option.
š§ Automatically fixable by the
| Name | š¼ | š§ |
| :------------------------------------------------------------------- | :-- | :-- |
| collection-method-value | ā
| |
| collection-return | ā
| |
| prefer-constant | ā
| |
| prefer-do-nothing | ā
| |
| prefer-filter | ā
| |
| prefer-find | ā
| |
| prefer-flat-map | ā
| |
| prefer-is-empty | ā
| š§ |
| prefer-is-nullish | ā
| |
| prefer-map | ā
| |
| prefer-nullish-coalescing | ā
| š§ |
| prefer-remeda-typecheck | ā
| |
| prefer-some | ā
| |
| prefer-times | ā
| |
Contributions are always welcome! For more info, read our contribution guide.