eslint-plugin-remeda 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -20
- package/dist/index.cjs +14846 -884
- package/dist/index.d.cts +56 -172
- package/dist/index.d.ts +56 -172
- package/dist/index.js +14857 -892
- package/docs/rules/collection-method-value.md +5 -1
- package/docs/rules/collection-return.md +5 -1
- package/docs/rules/prefer-constant.md +9 -1
- package/docs/rules/prefer-do-nothing.md +5 -1
- package/docs/rules/prefer-filter.md +9 -1
- package/docs/rules/prefer-find.md +5 -1
- package/docs/rules/prefer-flat-map.md +5 -1
- package/docs/rules/prefer-has-atleast.md +89 -0
- package/docs/rules/prefer-is-empty.md +7 -1
- package/docs/rules/{prefer-is-nil.md → prefer-is-nullish.md} +4 -4
- package/docs/rules/prefer-map.md +5 -1
- package/docs/rules/prefer-nullish-coalescing.md +9 -3
- package/docs/rules/prefer-remeda-typecheck.md +5 -1
- package/docs/rules/prefer-some.md +5 -1
- package/docs/rules/prefer-times.md +5 -1
- package/package.json +28 -19
package/README.md
CHANGED
@@ -2,42 +2,52 @@
|
|
2
2
|
|
3
3
|
ESLint plugin for [Remeda](https://github.com/remeda/remeda).
|
4
4
|
|
5
|
+
## Preamble
|
6
|
+
|
7
|
+
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.
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
First, you'll first need to install [ESLint](https://eslint.org/):
|
8
12
|
|
9
13
|
```sh
|
10
|
-
|
14
|
+
pnpm add -D eslint
|
11
15
|
```
|
12
16
|
|
13
17
|
Next, install `eslint-plugin-remeda`:
|
14
18
|
|
15
19
|
```sh
|
16
|
-
|
20
|
+
pnpm add -D eslint-plugin-remeda
|
17
21
|
```
|
18
22
|
|
19
|
-
## Preamble
|
20
|
-
|
21
|
-
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.
|
22
|
-
|
23
23
|
## Rules
|
24
24
|
|
25
25
|
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.
|
26
26
|
|
27
|
-
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
27
|
+
<!-- begin auto-generated rules list -->
|
28
|
+
|
29
|
+
💼 Configurations enabled in.\
|
30
|
+
✅ Set in the `recommended` configuration.\
|
31
|
+
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).
|
32
|
+
|
33
|
+
| Name | 💼 | 🔧 |
|
34
|
+
| :------------------------------------------------------------------- | :-- | :-- |
|
35
|
+
| [collection-method-value](docs/rules/collection-method-value.md) | ✅ | |
|
36
|
+
| [collection-return](docs/rules/collection-return.md) | ✅ | |
|
37
|
+
| [prefer-constant](docs/rules/prefer-constant.md) | ✅ | |
|
38
|
+
| [prefer-do-nothing](docs/rules/prefer-do-nothing.md) | ✅ | |
|
39
|
+
| [prefer-filter](docs/rules/prefer-filter.md) | ✅ | |
|
40
|
+
| [prefer-find](docs/rules/prefer-find.md) | ✅ | |
|
41
|
+
| [prefer-flat-map](docs/rules/prefer-flat-map.md) | ✅ | |
|
42
|
+
| [prefer-is-empty](docs/rules/prefer-is-empty.md) | ✅ | 🔧 |
|
43
|
+
| [prefer-is-nullish](docs/rules/prefer-is-nullish.md) | ✅ | |
|
44
|
+
| [prefer-map](docs/rules/prefer-map.md) | ✅ | |
|
45
|
+
| [prefer-nullish-coalescing](docs/rules/prefer-nullish-coalescing.md) | ✅ | 🔧 |
|
46
|
+
| [prefer-remeda-typecheck](docs/rules/prefer-remeda-typecheck.md) | ✅ | |
|
47
|
+
| [prefer-some](docs/rules/prefer-some.md) | ✅ | |
|
48
|
+
| [prefer-times](docs/rules/prefer-times.md) | ✅ | |
|
49
|
+
|
50
|
+
<!-- end auto-generated rules list -->
|
41
51
|
|
42
52
|
## Contributing
|
43
53
|
|