UNPKG

eslint-plugin-remeda

Version:
55 lines (38 loc) • 2.52 kB
# ESLint Plugin Remeda ESLint plugin for [Remeda](https://github.com/remeda/remeda). ## Preamble This plugin was originally derived from [eslint-plugin-lodash-f](https://github.com/AndreaPontrandolfo/eslint-plugin-lodash) (fork of [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)) and used that as a base to build upon. ## Installation First, you'll first need to install [ESLint](https://eslint.org/): ```sh pnpm add -D eslint ``` Next, install `eslint-plugin-remeda`: ```sh pnpm add -D eslint-plugin-remeda ``` ## Rules 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. <!-- begin auto-generated rules list --> šŸ’¼ Configurations enabled in.\ āœ… Set in the `recommended` configuration.\ šŸ”§ Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix). | Name | šŸ’¼ | šŸ”§ | | :------------------------------------------------------------------- | :-- | :-- | | [collection-method-value](docs/rules/collection-method-value.md) | āœ… | | | [collection-return](docs/rules/collection-return.md) | āœ… | | | [prefer-constant](docs/rules/prefer-constant.md) | āœ… | | | [prefer-do-nothing](docs/rules/prefer-do-nothing.md) | āœ… | | | [prefer-filter](docs/rules/prefer-filter.md) | āœ… | | | [prefer-find](docs/rules/prefer-find.md) | āœ… | | | [prefer-flat-map](docs/rules/prefer-flat-map.md) | āœ… | | | [prefer-is-empty](docs/rules/prefer-is-empty.md) | āœ… | šŸ”§ | | [prefer-is-nullish](docs/rules/prefer-is-nullish.md) | āœ… | | | [prefer-map](docs/rules/prefer-map.md) | āœ… | | | [prefer-nullish-coalescing](docs/rules/prefer-nullish-coalescing.md) | āœ… | šŸ”§ | | [prefer-remeda-typecheck](docs/rules/prefer-remeda-typecheck.md) | āœ… | | | [prefer-some](docs/rules/prefer-some.md) | āœ… | | | [prefer-times](docs/rules/prefer-times.md) | āœ… | | <!-- end auto-generated rules list --> ## Contributing Contributions are always welcome! For more info, read our [contribution guide](.github/CONTRIBUTING.md).