eslint-plugin-remeda 1.5.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/dist/index.cjs +14841 -896
- package/dist/index.d.cts +56 -186
- package/dist/index.d.ts +56 -186
- package/dist/index.js +14852 -904
- package/docs/rules/prefer-has-atleast.md +89 -0
- package/package.json +24 -18
package/dist/index.d.cts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
[key: string]: any;
|
3
|
-
}
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
4
2
|
|
5
3
|
declare const plugin: {
|
6
4
|
meta: {
|
@@ -8,194 +6,66 @@ declare const plugin: {
|
|
8
6
|
version: string;
|
9
7
|
};
|
10
8
|
rules: {
|
11
|
-
"collection-method-value":
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
readonly type: "problem";
|
40
|
-
readonly schema: readonly [];
|
41
|
-
readonly docs: {
|
42
|
-
readonly description: "Always return a value in iteratees of Remeda collection methods that aren't `forEach`";
|
43
|
-
readonly url: string;
|
44
|
-
};
|
45
|
-
};
|
46
|
-
};
|
47
|
-
"prefer-constant": {
|
48
|
-
create: (context: any) => {
|
49
|
-
FunctionExpression: (node: any) => void;
|
50
|
-
FunctionDeclaration(node: any): void;
|
51
|
-
ArrowFunctionExpression(node: any): void;
|
52
|
-
};
|
53
|
-
meta: {
|
54
|
-
readonly type: "problem";
|
55
|
-
readonly docs: {
|
56
|
-
readonly description: "Prefer R.constant over functions returning literals";
|
57
|
-
readonly url: string;
|
58
|
-
};
|
59
|
-
readonly schema: readonly [{
|
60
|
-
readonly type: "boolean";
|
61
|
-
}, {
|
62
|
-
readonly type: "boolean";
|
63
|
-
}];
|
64
|
-
};
|
65
|
-
};
|
66
|
-
"prefer-do-nothing": {
|
67
|
-
create: (context: any) => {
|
68
|
-
FunctionExpression: (node: any) => void;
|
69
|
-
ArrowFunctionExpression: (node: any) => void;
|
70
|
-
};
|
71
|
-
meta: {
|
72
|
-
readonly type: "problem";
|
73
|
-
readonly schema: readonly [];
|
74
|
-
readonly docs: {
|
75
|
-
readonly description: "Prefer R.doNothing() or R.constant(undefined) over an empty function";
|
76
|
-
readonly url: string;
|
77
|
-
};
|
78
|
-
};
|
79
|
-
};
|
80
|
-
"prefer-filter": {
|
81
|
-
create: (context: any) => RemedaMethodVisitors;
|
82
|
-
meta: {
|
83
|
-
readonly type: "problem";
|
84
|
-
readonly docs: {
|
85
|
-
readonly description: "Prefer R.filter or R.some over an if statement inside a R.forEach";
|
86
|
-
readonly url: string;
|
87
|
-
};
|
88
|
-
readonly schema: readonly [{
|
89
|
-
readonly type: "integer";
|
90
|
-
}];
|
91
|
-
};
|
92
|
-
};
|
93
|
-
"prefer-find": {
|
94
|
-
create: (context: any) => RemedaMethodVisitors;
|
95
|
-
meta: {
|
96
|
-
readonly type: "problem";
|
97
|
-
readonly schema: readonly [];
|
98
|
-
readonly docs: {
|
99
|
-
readonly description: "Prefer using `R.find` over selecting the first item of a filtered result";
|
100
|
-
readonly url: string;
|
101
|
-
};
|
102
|
-
};
|
103
|
-
};
|
104
|
-
"prefer-flat-map": {
|
105
|
-
create: (context: any) => RemedaMethodVisitors;
|
106
|
-
meta: {
|
107
|
-
readonly type: "problem";
|
108
|
-
readonly schema: readonly [];
|
109
|
-
readonly docs: {
|
110
|
-
readonly description: "Prefer R.flatMap over consecutive R.map and R.flat.";
|
111
|
-
readonly url: string;
|
112
|
-
};
|
113
|
-
};
|
114
|
-
};
|
115
|
-
"prefer-is-empty": {
|
116
|
-
create: (context: any) => RemedaMethodVisitors;
|
117
|
-
meta: {
|
118
|
-
readonly type: "problem";
|
119
|
-
readonly schema: readonly [];
|
120
|
-
readonly docs: {
|
121
|
-
readonly description: "Prefer R.isEmpty over manually checking for length value.";
|
122
|
-
readonly url: string;
|
123
|
-
};
|
124
|
-
readonly fixable: "code";
|
125
|
-
};
|
126
|
-
};
|
127
|
-
"prefer-is-nullish": {
|
128
|
-
create: (context: any) => RemedaMethodVisitors;
|
129
|
-
meta: {
|
130
|
-
readonly type: "problem";
|
131
|
-
readonly schema: readonly [];
|
132
|
-
readonly docs: {
|
133
|
-
readonly description: "Prefer R.isNullish over checks for both null and undefined.";
|
134
|
-
readonly url: string;
|
135
|
-
};
|
136
|
-
};
|
137
|
-
};
|
138
|
-
"prefer-map": {
|
139
|
-
create: (context: any) => RemedaMethodVisitors;
|
140
|
-
meta: {
|
141
|
-
readonly type: "problem";
|
142
|
-
readonly schema: readonly [];
|
143
|
-
readonly docs: {
|
144
|
-
readonly description: "Prefer R.map over a R.forEach with a push to an array inside";
|
145
|
-
readonly url: string;
|
146
|
-
};
|
147
|
-
};
|
148
|
-
};
|
149
|
-
"prefer-nullish-coalescing": {
|
150
|
-
create: (context: any) => RemedaMethodVisitors;
|
151
|
-
meta: {
|
152
|
-
readonly type: "problem";
|
153
|
-
readonly schema: readonly [];
|
154
|
-
readonly docs: {
|
155
|
-
readonly description: "Prefer nullish coalescing over checking a ternary with !isNullish.";
|
156
|
-
readonly url: string;
|
157
|
-
};
|
158
|
-
readonly fixable: "code";
|
159
|
-
};
|
160
|
-
};
|
161
|
-
"prefer-remeda-typecheck": {
|
162
|
-
create: (context: any) => {
|
163
|
-
BinaryExpression(node: any): void;
|
164
|
-
};
|
165
|
-
meta: {
|
166
|
-
readonly type: "problem";
|
167
|
-
readonly schema: readonly [];
|
168
|
-
readonly docs: {
|
169
|
-
readonly description: "Prefer using `R.is*` methods over `typeof` and `instanceof` checks when applicable.";
|
170
|
-
readonly url: string;
|
9
|
+
"collection-method-value": _typescript_eslint_utils_ts_eslint.RuleModule<"useReturnValueId" | "dontUseReturnValueId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
10
|
+
"collection-return": _typescript_eslint_utils_ts_eslint.RuleModule<"no-return", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
11
|
+
"prefer-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-constant", [(boolean | undefined)?, (boolean | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
12
|
+
"prefer-do-nothing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-do-nothing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
13
|
+
"prefer-filter": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-filter", [{
|
14
|
+
maxPropertyPathLength?: number;
|
15
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
16
|
+
"prefer-find": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-find" | "prefer-find-last", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
17
|
+
"prefer-flat-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-flat-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
18
|
+
"prefer-has-atleast": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-has-atleast" | "prefer-has-atleast-over-negated-isempty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
19
|
+
"prefer-is-empty": _typescript_eslint_utils_ts_eslint.RuleModule<"preferIsEmpty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
20
|
+
"prefer-is-nullish": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-is-nullish", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
21
|
+
"prefer-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
22
|
+
"prefer-nullish-coalescing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-nullish-coalescing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
23
|
+
"prefer-remeda-typecheck": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-remeda-typecheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
24
|
+
"prefer-some": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-some", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
25
|
+
"prefer-times": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-times", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
26
|
+
};
|
27
|
+
configs: {};
|
28
|
+
processors: {};
|
29
|
+
};
|
30
|
+
declare const configs: {
|
31
|
+
recommended: {
|
32
|
+
plugins: {
|
33
|
+
[x: string]: {
|
34
|
+
meta: {
|
35
|
+
name: string;
|
36
|
+
version: string;
|
171
37
|
};
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
38
|
+
rules: {
|
39
|
+
"collection-method-value": _typescript_eslint_utils_ts_eslint.RuleModule<"useReturnValueId" | "dontUseReturnValueId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
40
|
+
"collection-return": _typescript_eslint_utils_ts_eslint.RuleModule<"no-return", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
41
|
+
"prefer-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-constant", [(boolean | undefined)?, (boolean | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
42
|
+
"prefer-do-nothing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-do-nothing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
43
|
+
"prefer-filter": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-filter", [{
|
44
|
+
maxPropertyPathLength?: number;
|
45
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
46
|
+
"prefer-find": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-find" | "prefer-find-last", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
47
|
+
"prefer-flat-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-flat-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
48
|
+
"prefer-has-atleast": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-has-atleast" | "prefer-has-atleast-over-negated-isempty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
49
|
+
"prefer-is-empty": _typescript_eslint_utils_ts_eslint.RuleModule<"preferIsEmpty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
50
|
+
"prefer-is-nullish": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-is-nullish", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
51
|
+
"prefer-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
52
|
+
"prefer-nullish-coalescing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-nullish-coalescing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
53
|
+
"prefer-remeda-typecheck": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-remeda-typecheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
54
|
+
"prefer-some": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-some", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
55
|
+
"prefer-times": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-times", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
181
56
|
};
|
182
|
-
|
57
|
+
configs: {};
|
58
|
+
processors: {};
|
183
59
|
};
|
184
60
|
};
|
185
|
-
|
186
|
-
|
187
|
-
meta: {
|
188
|
-
readonly type: "problem";
|
189
|
-
readonly schema: readonly [];
|
190
|
-
readonly docs: {
|
191
|
-
readonly description: "Prefer R.times over R.map without using arguments";
|
192
|
-
readonly url: string;
|
193
|
-
};
|
194
|
-
};
|
61
|
+
rules: {
|
62
|
+
[x: string]: number | number[];
|
195
63
|
};
|
196
64
|
};
|
197
|
-
configs: {};
|
198
|
-
processors: {};
|
199
65
|
};
|
66
|
+
type Plugin = typeof plugin & {
|
67
|
+
configs: typeof configs;
|
68
|
+
};
|
69
|
+
declare const _default: Plugin;
|
200
70
|
|
201
|
-
export
|
71
|
+
export = _default;
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
[key: string]: any;
|
3
|
-
}
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
4
2
|
|
5
3
|
declare const plugin: {
|
6
4
|
meta: {
|
@@ -8,194 +6,66 @@ declare const plugin: {
|
|
8
6
|
version: string;
|
9
7
|
};
|
10
8
|
rules: {
|
11
|
-
"collection-method-value":
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
readonly type: "problem";
|
40
|
-
readonly schema: readonly [];
|
41
|
-
readonly docs: {
|
42
|
-
readonly description: "Always return a value in iteratees of Remeda collection methods that aren't `forEach`";
|
43
|
-
readonly url: string;
|
44
|
-
};
|
45
|
-
};
|
46
|
-
};
|
47
|
-
"prefer-constant": {
|
48
|
-
create: (context: any) => {
|
49
|
-
FunctionExpression: (node: any) => void;
|
50
|
-
FunctionDeclaration(node: any): void;
|
51
|
-
ArrowFunctionExpression(node: any): void;
|
52
|
-
};
|
53
|
-
meta: {
|
54
|
-
readonly type: "problem";
|
55
|
-
readonly docs: {
|
56
|
-
readonly description: "Prefer R.constant over functions returning literals";
|
57
|
-
readonly url: string;
|
58
|
-
};
|
59
|
-
readonly schema: readonly [{
|
60
|
-
readonly type: "boolean";
|
61
|
-
}, {
|
62
|
-
readonly type: "boolean";
|
63
|
-
}];
|
64
|
-
};
|
65
|
-
};
|
66
|
-
"prefer-do-nothing": {
|
67
|
-
create: (context: any) => {
|
68
|
-
FunctionExpression: (node: any) => void;
|
69
|
-
ArrowFunctionExpression: (node: any) => void;
|
70
|
-
};
|
71
|
-
meta: {
|
72
|
-
readonly type: "problem";
|
73
|
-
readonly schema: readonly [];
|
74
|
-
readonly docs: {
|
75
|
-
readonly description: "Prefer R.doNothing() or R.constant(undefined) over an empty function";
|
76
|
-
readonly url: string;
|
77
|
-
};
|
78
|
-
};
|
79
|
-
};
|
80
|
-
"prefer-filter": {
|
81
|
-
create: (context: any) => RemedaMethodVisitors;
|
82
|
-
meta: {
|
83
|
-
readonly type: "problem";
|
84
|
-
readonly docs: {
|
85
|
-
readonly description: "Prefer R.filter or R.some over an if statement inside a R.forEach";
|
86
|
-
readonly url: string;
|
87
|
-
};
|
88
|
-
readonly schema: readonly [{
|
89
|
-
readonly type: "integer";
|
90
|
-
}];
|
91
|
-
};
|
92
|
-
};
|
93
|
-
"prefer-find": {
|
94
|
-
create: (context: any) => RemedaMethodVisitors;
|
95
|
-
meta: {
|
96
|
-
readonly type: "problem";
|
97
|
-
readonly schema: readonly [];
|
98
|
-
readonly docs: {
|
99
|
-
readonly description: "Prefer using `R.find` over selecting the first item of a filtered result";
|
100
|
-
readonly url: string;
|
101
|
-
};
|
102
|
-
};
|
103
|
-
};
|
104
|
-
"prefer-flat-map": {
|
105
|
-
create: (context: any) => RemedaMethodVisitors;
|
106
|
-
meta: {
|
107
|
-
readonly type: "problem";
|
108
|
-
readonly schema: readonly [];
|
109
|
-
readonly docs: {
|
110
|
-
readonly description: "Prefer R.flatMap over consecutive R.map and R.flat.";
|
111
|
-
readonly url: string;
|
112
|
-
};
|
113
|
-
};
|
114
|
-
};
|
115
|
-
"prefer-is-empty": {
|
116
|
-
create: (context: any) => RemedaMethodVisitors;
|
117
|
-
meta: {
|
118
|
-
readonly type: "problem";
|
119
|
-
readonly schema: readonly [];
|
120
|
-
readonly docs: {
|
121
|
-
readonly description: "Prefer R.isEmpty over manually checking for length value.";
|
122
|
-
readonly url: string;
|
123
|
-
};
|
124
|
-
readonly fixable: "code";
|
125
|
-
};
|
126
|
-
};
|
127
|
-
"prefer-is-nullish": {
|
128
|
-
create: (context: any) => RemedaMethodVisitors;
|
129
|
-
meta: {
|
130
|
-
readonly type: "problem";
|
131
|
-
readonly schema: readonly [];
|
132
|
-
readonly docs: {
|
133
|
-
readonly description: "Prefer R.isNullish over checks for both null and undefined.";
|
134
|
-
readonly url: string;
|
135
|
-
};
|
136
|
-
};
|
137
|
-
};
|
138
|
-
"prefer-map": {
|
139
|
-
create: (context: any) => RemedaMethodVisitors;
|
140
|
-
meta: {
|
141
|
-
readonly type: "problem";
|
142
|
-
readonly schema: readonly [];
|
143
|
-
readonly docs: {
|
144
|
-
readonly description: "Prefer R.map over a R.forEach with a push to an array inside";
|
145
|
-
readonly url: string;
|
146
|
-
};
|
147
|
-
};
|
148
|
-
};
|
149
|
-
"prefer-nullish-coalescing": {
|
150
|
-
create: (context: any) => RemedaMethodVisitors;
|
151
|
-
meta: {
|
152
|
-
readonly type: "problem";
|
153
|
-
readonly schema: readonly [];
|
154
|
-
readonly docs: {
|
155
|
-
readonly description: "Prefer nullish coalescing over checking a ternary with !isNullish.";
|
156
|
-
readonly url: string;
|
157
|
-
};
|
158
|
-
readonly fixable: "code";
|
159
|
-
};
|
160
|
-
};
|
161
|
-
"prefer-remeda-typecheck": {
|
162
|
-
create: (context: any) => {
|
163
|
-
BinaryExpression(node: any): void;
|
164
|
-
};
|
165
|
-
meta: {
|
166
|
-
readonly type: "problem";
|
167
|
-
readonly schema: readonly [];
|
168
|
-
readonly docs: {
|
169
|
-
readonly description: "Prefer using `R.is*` methods over `typeof` and `instanceof` checks when applicable.";
|
170
|
-
readonly url: string;
|
9
|
+
"collection-method-value": _typescript_eslint_utils_ts_eslint.RuleModule<"useReturnValueId" | "dontUseReturnValueId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
10
|
+
"collection-return": _typescript_eslint_utils_ts_eslint.RuleModule<"no-return", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
11
|
+
"prefer-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-constant", [(boolean | undefined)?, (boolean | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
12
|
+
"prefer-do-nothing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-do-nothing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
13
|
+
"prefer-filter": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-filter", [{
|
14
|
+
maxPropertyPathLength?: number;
|
15
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
16
|
+
"prefer-find": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-find" | "prefer-find-last", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
17
|
+
"prefer-flat-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-flat-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
18
|
+
"prefer-has-atleast": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-has-atleast" | "prefer-has-atleast-over-negated-isempty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
19
|
+
"prefer-is-empty": _typescript_eslint_utils_ts_eslint.RuleModule<"preferIsEmpty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
20
|
+
"prefer-is-nullish": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-is-nullish", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
21
|
+
"prefer-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
22
|
+
"prefer-nullish-coalescing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-nullish-coalescing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
23
|
+
"prefer-remeda-typecheck": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-remeda-typecheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
24
|
+
"prefer-some": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-some", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
25
|
+
"prefer-times": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-times", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
26
|
+
};
|
27
|
+
configs: {};
|
28
|
+
processors: {};
|
29
|
+
};
|
30
|
+
declare const configs: {
|
31
|
+
recommended: {
|
32
|
+
plugins: {
|
33
|
+
[x: string]: {
|
34
|
+
meta: {
|
35
|
+
name: string;
|
36
|
+
version: string;
|
171
37
|
};
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
38
|
+
rules: {
|
39
|
+
"collection-method-value": _typescript_eslint_utils_ts_eslint.RuleModule<"useReturnValueId" | "dontUseReturnValueId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
40
|
+
"collection-return": _typescript_eslint_utils_ts_eslint.RuleModule<"no-return", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
41
|
+
"prefer-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-constant", [(boolean | undefined)?, (boolean | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
42
|
+
"prefer-do-nothing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-do-nothing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
43
|
+
"prefer-filter": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-filter", [{
|
44
|
+
maxPropertyPathLength?: number;
|
45
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
46
|
+
"prefer-find": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-find" | "prefer-find-last", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
47
|
+
"prefer-flat-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-flat-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
48
|
+
"prefer-has-atleast": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-has-atleast" | "prefer-has-atleast-over-negated-isempty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
49
|
+
"prefer-is-empty": _typescript_eslint_utils_ts_eslint.RuleModule<"preferIsEmpty", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
50
|
+
"prefer-is-nullish": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-is-nullish", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
51
|
+
"prefer-map": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-map", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
52
|
+
"prefer-nullish-coalescing": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-nullish-coalescing", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
53
|
+
"prefer-remeda-typecheck": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-remeda-typecheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
54
|
+
"prefer-some": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-some", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
55
|
+
"prefer-times": _typescript_eslint_utils_ts_eslint.RuleModule<"prefer-times", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
181
56
|
};
|
182
|
-
|
57
|
+
configs: {};
|
58
|
+
processors: {};
|
183
59
|
};
|
184
60
|
};
|
185
|
-
|
186
|
-
|
187
|
-
meta: {
|
188
|
-
readonly type: "problem";
|
189
|
-
readonly schema: readonly [];
|
190
|
-
readonly docs: {
|
191
|
-
readonly description: "Prefer R.times over R.map without using arguments";
|
192
|
-
readonly url: string;
|
193
|
-
};
|
194
|
-
};
|
61
|
+
rules: {
|
62
|
+
[x: string]: number | number[];
|
195
63
|
};
|
196
64
|
};
|
197
|
-
configs: {};
|
198
|
-
processors: {};
|
199
65
|
};
|
66
|
+
type Plugin = typeof plugin & {
|
67
|
+
configs: typeof configs;
|
68
|
+
};
|
69
|
+
declare const _default: Plugin;
|
200
70
|
|
201
|
-
export {
|
71
|
+
export { _default as default };
|