@perfective/eslint-config 0.29.0 → 0.29.2
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.adoc +1 -2
- package/README.md +1 -2
- package/cypress.d.ts +1 -0
- package/cypress.js +3 -5
- package/index.d.ts +1732 -0
- package/index.js +11 -12
- package/jest-dom.d.ts +1 -0
- package/jest.d.ts +1 -0
- package/package.json +17 -7
- package/rules/array-func/index.d.ts +14 -0
- package/rules/cypress/index.d.ts +21 -0
- package/rules/eslint/index.d.ts +339 -0
- package/rules/eslint/layout-formatting.d.ts +64 -0
- package/rules/eslint/possible-problems.d.ts +96 -0
- package/rules/eslint/suggestions.d.ts +181 -0
- package/rules/eslint-comments/best-practices.d.ts +8 -0
- package/rules/eslint-comments/index.d.ts +21 -0
- package/rules/eslint-comments/stylistic-issues.d.ts +9 -0
- package/rules/import/helpful-warnings.d.ts +10 -0
- package/rules/import/index.d.ts +78 -0
- package/rules/import/module-systems.d.ts +10 -0
- package/rules/import/static-analysis.d.ts +26 -0
- package/rules/import/style-guide.d.ts +33 -0
- package/rules/jest/index.d.ts +124 -0
- package/rules/jest/typescript-eslint.d.ts +5 -0
- package/rules/jest-dom/index.d.ts +32 -0
- package/rules/jsdoc/index.d.ts +134 -0
- package/rules/n/index.d.ts +66 -0
- package/rules/prefer-arrow/index.d.ts +14 -0
- package/rules/promise/index.d.ts +35 -0
- package/rules/rxjs/index.d.ts +60 -0
- package/rules/security/index.d.ts +22 -0
- package/rules/simple-import-sort/index.d.ts +10 -0
- package/rules/stylistic/js/index.d.ts +197 -0
- package/rules/stylistic/jsx/index.d.ts +81 -0
- package/rules/stylistic/plus/index.d.ts +14 -0
- package/rules/stylistic/ts/index.d.ts +135 -0
- package/rules/testing-library/index.d.ts +62 -0
- package/rules/typescript-eslint/extension-rules.d.ts +113 -0
- package/rules/typescript-eslint/index.d.ts +369 -0
- package/rules/typescript-eslint/supported-rules.d.ts +253 -0
- package/rules/unicorn/index.d.ts +178 -0
- package/rxjs.d.ts +1 -0
- package/rxjs.js +3 -3
- package/testing-library.d.ts +1 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
export declare const supportedRules: {
|
|
2
|
+
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
3
|
+
'@typescript-eslint/array-type': (string | {
|
|
4
|
+
default: string;
|
|
5
|
+
readonly: string;
|
|
6
|
+
})[];
|
|
7
|
+
'@typescript-eslint/await-thenable': string;
|
|
8
|
+
'@typescript-eslint/ban-ts-comment': string;
|
|
9
|
+
'@typescript-eslint/ban-tslint-comment': string;
|
|
10
|
+
'@typescript-eslint/ban-types': string;
|
|
11
|
+
'@typescript-eslint/class-literal-property-style': string;
|
|
12
|
+
'@typescript-eslint/consistent-generic-constructors': string[];
|
|
13
|
+
'@typescript-eslint/consistent-indexed-object-style': string[];
|
|
14
|
+
'@typescript-eslint/consistent-type-assertions': (string | {
|
|
15
|
+
assertionStyle: string;
|
|
16
|
+
objectLiteralTypeAssertions: string;
|
|
17
|
+
})[];
|
|
18
|
+
'@typescript-eslint/consistent-type-definitions': string[];
|
|
19
|
+
'@typescript-eslint/consistent-type-exports': (string | {
|
|
20
|
+
fixMixedExportsWithInlineTypeSpecifier: boolean;
|
|
21
|
+
})[];
|
|
22
|
+
'@typescript-eslint/consistent-type-imports': (string | {
|
|
23
|
+
prefer: string;
|
|
24
|
+
disallowTypeAnnotations: boolean;
|
|
25
|
+
})[];
|
|
26
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
27
|
+
allowConciseArrowFunctionExpressionsStartingWithVoid: boolean;
|
|
28
|
+
allowDirectConstAssertionInArrowFunctions: boolean;
|
|
29
|
+
allowExpressions: boolean;
|
|
30
|
+
allowFunctionsWithoutTypeParameters: boolean;
|
|
31
|
+
allowHigherOrderFunctions: boolean;
|
|
32
|
+
allowIIFEs: boolean;
|
|
33
|
+
allowTypedFunctionExpressions: boolean;
|
|
34
|
+
allowedNames: never[];
|
|
35
|
+
})[];
|
|
36
|
+
'@typescript-eslint/explicit-member-accessibility': string;
|
|
37
|
+
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
38
|
+
'@typescript-eslint/member-delimiter-style': string;
|
|
39
|
+
'@typescript-eslint/member-ordering': (string | {
|
|
40
|
+
default: string[];
|
|
41
|
+
})[];
|
|
42
|
+
'@typescript-eslint/method-signature-style': string[];
|
|
43
|
+
'@typescript-eslint/naming-convention': (string | import("./rules/typescript-eslint-naming-convention").TypescriptEslintNamingConvention)[];
|
|
44
|
+
'@typescript-eslint/no-array-delete': string;
|
|
45
|
+
'@typescript-eslint/no-base-to-string': string;
|
|
46
|
+
'@typescript-eslint/no-confusing-non-null-assertion': string;
|
|
47
|
+
'@typescript-eslint/no-confusing-void-expression': (string | {
|
|
48
|
+
ignoreArrowShorthand: boolean;
|
|
49
|
+
ignoreVoidOperator: boolean;
|
|
50
|
+
})[];
|
|
51
|
+
'@typescript-eslint/no-deprecated': string;
|
|
52
|
+
'@typescript-eslint/no-duplicate-enum-values': string;
|
|
53
|
+
'@typescript-eslint/no-duplicate-type-constituents': (string | {
|
|
54
|
+
ignoreIntersections: boolean;
|
|
55
|
+
ignoreUnions: boolean;
|
|
56
|
+
})[];
|
|
57
|
+
'@typescript-eslint/no-dynamic-delete': string;
|
|
58
|
+
'@typescript-eslint/no-empty-interface': (string | {
|
|
59
|
+
allowSingleExtends: boolean;
|
|
60
|
+
})[];
|
|
61
|
+
'@typescript-eslint/no-empty-object-type': (string | {
|
|
62
|
+
allowInterfaces: string;
|
|
63
|
+
allowObjectTypes: string;
|
|
64
|
+
})[];
|
|
65
|
+
'@typescript-eslint/no-explicit-any': (string | {
|
|
66
|
+
fixToUnknown: boolean;
|
|
67
|
+
ignoreRestArgs: boolean;
|
|
68
|
+
})[];
|
|
69
|
+
'@typescript-eslint/no-extra-non-null-assertion': string;
|
|
70
|
+
'@typescript-eslint/no-extraneous-class': (string | {
|
|
71
|
+
allowConstructorOnly: boolean;
|
|
72
|
+
allowEmpty: boolean;
|
|
73
|
+
allowStaticOnly: boolean;
|
|
74
|
+
allowWithDecorator: boolean;
|
|
75
|
+
})[];
|
|
76
|
+
'@typescript-eslint/no-floating-promises': (string | {
|
|
77
|
+
allowForKnownSafeCalls: never[];
|
|
78
|
+
allowForKnownSafePromises: never[];
|
|
79
|
+
checkThenables: boolean;
|
|
80
|
+
ignoreIIFE: boolean;
|
|
81
|
+
ignoreVoid: boolean;
|
|
82
|
+
})[];
|
|
83
|
+
'@typescript-eslint/no-for-in-array': string;
|
|
84
|
+
'@typescript-eslint/no-import-type-side-effects': string;
|
|
85
|
+
'@typescript-eslint/no-inferrable-types': string;
|
|
86
|
+
'@typescript-eslint/no-invalid-void-type': (string | {
|
|
87
|
+
allowInGenericTypeArguments: boolean;
|
|
88
|
+
})[];
|
|
89
|
+
'@typescript-eslint/no-meaningless-void-operator': (string | {
|
|
90
|
+
checkNever: boolean;
|
|
91
|
+
})[];
|
|
92
|
+
'@typescript-eslint/no-misused-new': string;
|
|
93
|
+
'@typescript-eslint/no-misused-promises': (string | {
|
|
94
|
+
checksConditionals: boolean;
|
|
95
|
+
checksVoidReturn: boolean;
|
|
96
|
+
})[];
|
|
97
|
+
'@typescript-eslint/no-mixed-enums': string;
|
|
98
|
+
'@typescript-eslint/no-namespace': string;
|
|
99
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': string;
|
|
100
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': string;
|
|
101
|
+
'@typescript-eslint/no-non-null-assertion': string;
|
|
102
|
+
'@typescript-eslint/no-redundant-type-constituents': string;
|
|
103
|
+
'@typescript-eslint/no-unnecessary-type-parameters': string;
|
|
104
|
+
'@typescript-eslint/no-require-imports': (string | {
|
|
105
|
+
allow: never[];
|
|
106
|
+
})[];
|
|
107
|
+
'@typescript-eslint/no-restricted-types': (string | {
|
|
108
|
+
types: {
|
|
109
|
+
object: {
|
|
110
|
+
message: string;
|
|
111
|
+
suggest: string[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
})[];
|
|
115
|
+
'@typescript-eslint/no-this-alias': string;
|
|
116
|
+
'@typescript-eslint/no-type-alias': string;
|
|
117
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': (string | {
|
|
118
|
+
allowComparingNullableBooleansToTrue: boolean;
|
|
119
|
+
allowComparingNullableBooleansToFalse: boolean;
|
|
120
|
+
})[];
|
|
121
|
+
'@typescript-eslint/no-unnecessary-condition': (string | {
|
|
122
|
+
allowConstantLoopConditions: boolean;
|
|
123
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
|
|
124
|
+
checkTypePredicates: boolean;
|
|
125
|
+
})[];
|
|
126
|
+
'@typescript-eslint/no-unnecessary-parameter-property-assignment': string;
|
|
127
|
+
'@typescript-eslint/no-unnecessary-qualifier': string;
|
|
128
|
+
'@typescript-eslint/no-unnecessary-template-expression': string;
|
|
129
|
+
'@typescript-eslint/no-unnecessary-type-arguments': string;
|
|
130
|
+
'@typescript-eslint/no-unnecessary-type-assertion': string;
|
|
131
|
+
'@typescript-eslint/no-unnecessary-type-constraint': string;
|
|
132
|
+
'@typescript-eslint/no-unsafe-argument': string;
|
|
133
|
+
'@typescript-eslint/no-unsafe-assignment': string;
|
|
134
|
+
'@typescript-eslint/no-unsafe-call': string;
|
|
135
|
+
'@typescript-eslint/no-unsafe-declaration-merging': string;
|
|
136
|
+
'@typescript-eslint/no-unsafe-enum-comparison': string;
|
|
137
|
+
'@typescript-eslint/no-unsafe-function-type': string;
|
|
138
|
+
'@typescript-eslint/no-unsafe-member-access': string;
|
|
139
|
+
'@typescript-eslint/no-unsafe-return': string;
|
|
140
|
+
'@typescript-eslint/no-unsafe-type-assertion': string;
|
|
141
|
+
'@typescript-eslint/no-unsafe-unary-minus': string;
|
|
142
|
+
'@typescript-eslint/no-useless-empty-export': string;
|
|
143
|
+
'@typescript-eslint/no-useless-template-literal': string;
|
|
144
|
+
'@typescript-eslint/no-var-requires': (string | {
|
|
145
|
+
allow: never[];
|
|
146
|
+
})[];
|
|
147
|
+
'@typescript-eslint/no-wrapper-object-types': string;
|
|
148
|
+
'@typescript-eslint/non-nullable-type-assertion-style': string;
|
|
149
|
+
'@typescript-eslint/parameter-properties': (string | {
|
|
150
|
+
prefer: string;
|
|
151
|
+
})[];
|
|
152
|
+
'@typescript-eslint/prefer-as-const': string;
|
|
153
|
+
'@typescript-eslint/prefer-enum-initializers': string;
|
|
154
|
+
'@typescript-eslint/prefer-find': string;
|
|
155
|
+
'@typescript-eslint/prefer-for-of': string;
|
|
156
|
+
'@typescript-eslint/prefer-function-type': string;
|
|
157
|
+
'@typescript-eslint/prefer-includes': string;
|
|
158
|
+
'@typescript-eslint/prefer-literal-enum-member': (string | {
|
|
159
|
+
allowBitwiseExpressions: boolean;
|
|
160
|
+
})[];
|
|
161
|
+
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
162
|
+
'@typescript-eslint/prefer-nullish-coalescing': (string | {
|
|
163
|
+
ignoreBooleanCoercion: boolean;
|
|
164
|
+
ignoreTernaryTests: boolean;
|
|
165
|
+
ignoreConditionalTests: boolean;
|
|
166
|
+
ignoreMixedLogicalExpressions: boolean;
|
|
167
|
+
ignorePrimitives: {
|
|
168
|
+
bigint: boolean;
|
|
169
|
+
boolean: boolean;
|
|
170
|
+
number: boolean;
|
|
171
|
+
string: boolean;
|
|
172
|
+
};
|
|
173
|
+
})[];
|
|
174
|
+
'@typescript-eslint/prefer-optional-chain': (string | {
|
|
175
|
+
checkAny: boolean;
|
|
176
|
+
checkUnknown: boolean;
|
|
177
|
+
checkString: boolean;
|
|
178
|
+
checkNumber: boolean;
|
|
179
|
+
checkBoolean: boolean;
|
|
180
|
+
checkBigInt: boolean;
|
|
181
|
+
requireNullish: boolean;
|
|
182
|
+
})[];
|
|
183
|
+
'@typescript-eslint/prefer-readonly': string;
|
|
184
|
+
'@typescript-eslint/prefer-readonly-parameter-types': string;
|
|
185
|
+
'@typescript-eslint/prefer-reduce-type-parameter': string;
|
|
186
|
+
'@typescript-eslint/prefer-regexp-exec': string;
|
|
187
|
+
'@typescript-eslint/prefer-return-this-type': string;
|
|
188
|
+
'@typescript-eslint/prefer-string-starts-ends-with': (string | {
|
|
189
|
+
allowSingleElementEquality: string;
|
|
190
|
+
})[];
|
|
191
|
+
'@typescript-eslint/prefer-ts-expect-error': string;
|
|
192
|
+
'@typescript-eslint/promise-function-async': (string | {
|
|
193
|
+
checkArrowFunctions: boolean;
|
|
194
|
+
})[];
|
|
195
|
+
'@typescript-eslint/require-array-sort-compare': (string | {
|
|
196
|
+
ignoreStringArrays: boolean;
|
|
197
|
+
})[];
|
|
198
|
+
'@typescript-eslint/restrict-plus-operands': (string | {
|
|
199
|
+
allowAny: boolean;
|
|
200
|
+
allowBoolean: boolean;
|
|
201
|
+
allowNullish: boolean;
|
|
202
|
+
allowNumberAndString: boolean;
|
|
203
|
+
allowRegExp: boolean;
|
|
204
|
+
skipCompoundAssignments: boolean;
|
|
205
|
+
})[];
|
|
206
|
+
'@typescript-eslint/restrict-template-expressions': (string | {
|
|
207
|
+
allowAny: boolean;
|
|
208
|
+
allowArray: boolean;
|
|
209
|
+
allowBoolean: boolean;
|
|
210
|
+
allowNullish: boolean;
|
|
211
|
+
allowNumber: boolean;
|
|
212
|
+
allowRegExp: boolean;
|
|
213
|
+
allowNever: boolean;
|
|
214
|
+
})[];
|
|
215
|
+
'@typescript-eslint/sort-type-constituents': string;
|
|
216
|
+
'@typescript-eslint/strict-boolean-expressions': (string | {
|
|
217
|
+
allowString: boolean;
|
|
218
|
+
allowNumber: boolean;
|
|
219
|
+
allowNullableEnum: boolean;
|
|
220
|
+
allowNullableObject: boolean;
|
|
221
|
+
allowNullableBoolean: boolean;
|
|
222
|
+
allowNullableString: boolean;
|
|
223
|
+
allowNullableNumber: boolean;
|
|
224
|
+
allowAny: boolean;
|
|
225
|
+
})[];
|
|
226
|
+
'@typescript-eslint/switch-exhaustiveness-check': (string | {
|
|
227
|
+
allowDefaultCaseForExhaustiveSwitch: boolean;
|
|
228
|
+
requireDefaultForNonUnion: boolean;
|
|
229
|
+
})[];
|
|
230
|
+
'@typescript-eslint/triple-slash-reference': (string | {
|
|
231
|
+
path: string;
|
|
232
|
+
types: string;
|
|
233
|
+
lib: string;
|
|
234
|
+
})[];
|
|
235
|
+
'@typescript-eslint/type-annotation-spacing': string;
|
|
236
|
+
'@typescript-eslint/typedef': (string | {
|
|
237
|
+
arrayDestructuring: boolean;
|
|
238
|
+
arrowParameter: boolean;
|
|
239
|
+
memberVariableDeclaration: boolean;
|
|
240
|
+
objectDestructuring: boolean;
|
|
241
|
+
parameter: boolean;
|
|
242
|
+
propertyDeclaration: boolean;
|
|
243
|
+
variableDeclaration: boolean;
|
|
244
|
+
variableDeclarationIgnoreFunction: boolean;
|
|
245
|
+
})[];
|
|
246
|
+
'@typescript-eslint/unbound-method': (string | {
|
|
247
|
+
ignoreStatic: boolean;
|
|
248
|
+
})[];
|
|
249
|
+
'@typescript-eslint/unified-signatures': (string | {
|
|
250
|
+
ignoreDifferentlyNamedParameters: boolean;
|
|
251
|
+
})[];
|
|
252
|
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': string;
|
|
253
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export declare const unicornConfig: {
|
|
2
|
+
plugins: {
|
|
3
|
+
unicorn: import("eslint").ESLint.Plugin & {
|
|
4
|
+
configs: {
|
|
5
|
+
recommended: import("eslint").Linter.Config;
|
|
6
|
+
all: import("eslint").Linter.Config;
|
|
7
|
+
"flat/all": import("eslint").Linter.FlatConfig;
|
|
8
|
+
"flat/recommended": import("eslint").Linter.FlatConfig;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
rules: {
|
|
13
|
+
'unicorn/better-regex': string;
|
|
14
|
+
'unicorn/catch-error-name': string;
|
|
15
|
+
'unicorn/consistent-destructuring': string;
|
|
16
|
+
'unicorn/consistent-empty-array-spread': string;
|
|
17
|
+
'unicorn/consistent-existence-index-check': string;
|
|
18
|
+
'unicorn/consistent-function-scoping': (string | {
|
|
19
|
+
checkArrowFunctions: boolean;
|
|
20
|
+
})[];
|
|
21
|
+
'unicorn/custom-error-definition': string;
|
|
22
|
+
'unicorn/empty-brace-spaces': string;
|
|
23
|
+
'unicorn/error-message': string;
|
|
24
|
+
'unicorn/escape-case': string;
|
|
25
|
+
'unicorn/expiring-todo-comments': string;
|
|
26
|
+
'unicorn/explicit-length-check': string;
|
|
27
|
+
'unicorn/filename-case': (string | {
|
|
28
|
+
case: string;
|
|
29
|
+
})[];
|
|
30
|
+
'unicorn/import-index': string;
|
|
31
|
+
'unicorn/import-style': string;
|
|
32
|
+
'unicorn/new-for-builtins': string;
|
|
33
|
+
'unicorn/no-abusive-eslint-disable': string;
|
|
34
|
+
'unicorn/no-anonymous-default-export': string;
|
|
35
|
+
'unicorn/no-array-callback-reference': string;
|
|
36
|
+
'unicorn/no-array-for-each': string;
|
|
37
|
+
'unicorn/no-array-method-this-argument': string;
|
|
38
|
+
'unicorn/no-array-push-push': (string | {
|
|
39
|
+
ignore: string[];
|
|
40
|
+
})[];
|
|
41
|
+
'unicorn/no-array-reduce': string;
|
|
42
|
+
'unicorn/no-await-expression-member': string;
|
|
43
|
+
'unicorn/no-await-in-promise-methods': string;
|
|
44
|
+
'unicorn/no-console-spaces': string;
|
|
45
|
+
'unicorn/no-document-cookie': string;
|
|
46
|
+
'unicorn/no-empty-file': string;
|
|
47
|
+
'unicorn/no-for-loop': string;
|
|
48
|
+
'unicorn/no-hex-escape': string;
|
|
49
|
+
'unicorn/no-instanceof-array': string;
|
|
50
|
+
'unicorn/no-invalid-fetch-options': string;
|
|
51
|
+
'unicorn/no-invalid-remove-event-listener': string;
|
|
52
|
+
'unicorn/no-keyword-prefix': (string | {
|
|
53
|
+
disallowedPrefixes: string[];
|
|
54
|
+
checkProperties: boolean;
|
|
55
|
+
onlyCamelCase: boolean;
|
|
56
|
+
})[];
|
|
57
|
+
'unicorn/no-length-as-slice-end': string;
|
|
58
|
+
'unicorn/no-lonely-if': string;
|
|
59
|
+
'unicorn/no-magic-array-flat-depth': string;
|
|
60
|
+
'unicorn/no-negated-condition': string;
|
|
61
|
+
'unicorn/no-negation-in-equality-check': string;
|
|
62
|
+
'unicorn/no-nested-ternary': string;
|
|
63
|
+
'unicorn/no-new-array': string;
|
|
64
|
+
'unicorn/no-new-buffer': string;
|
|
65
|
+
'unicorn/no-null': string;
|
|
66
|
+
'unicorn/no-object-as-default-parameter': string;
|
|
67
|
+
'unicorn/no-process-exit': string;
|
|
68
|
+
'unicorn/no-single-promise-in-promise-methods': string;
|
|
69
|
+
'unicorn/no-static-only-class': string;
|
|
70
|
+
'unicorn/no-thenable': string;
|
|
71
|
+
'unicorn/no-this-assignment': string;
|
|
72
|
+
'unicorn/no-typeof-undefined': (string | {
|
|
73
|
+
checkGlobalVariables: boolean;
|
|
74
|
+
})[];
|
|
75
|
+
'unicorn/no-unnecessary-await': string;
|
|
76
|
+
'unicorn/no-unnecessary-polyfills': string;
|
|
77
|
+
'unicorn/no-unreadable-array-destructuring': string;
|
|
78
|
+
'unicorn/no-unreadable-iife': string;
|
|
79
|
+
'unicorn/no-unsafe-regex': string;
|
|
80
|
+
'unicorn/no-unused-properties': string;
|
|
81
|
+
'unicorn/no-useless-fallback-in-spread': string;
|
|
82
|
+
'unicorn/no-useless-length-check': string;
|
|
83
|
+
'unicorn/no-useless-promise-resolve-reject': string;
|
|
84
|
+
'unicorn/no-useless-spread': string;
|
|
85
|
+
'unicorn/no-useless-switch-case': string;
|
|
86
|
+
'unicorn/no-useless-undefined': string;
|
|
87
|
+
'unicorn/no-zero-fractions': string;
|
|
88
|
+
'unicorn/number-literal-case': string;
|
|
89
|
+
'unicorn/numeric-separators-style': (string | {
|
|
90
|
+
hexadecimal: {
|
|
91
|
+
minimumDigits: number;
|
|
92
|
+
groupLength: number;
|
|
93
|
+
};
|
|
94
|
+
binary: {
|
|
95
|
+
minimumDigits: number;
|
|
96
|
+
groupLength: number;
|
|
97
|
+
};
|
|
98
|
+
octal: {
|
|
99
|
+
minimumDigits: number;
|
|
100
|
+
groupLength: number;
|
|
101
|
+
};
|
|
102
|
+
number: {
|
|
103
|
+
minimumDigits: number;
|
|
104
|
+
groupLength: number;
|
|
105
|
+
};
|
|
106
|
+
})[];
|
|
107
|
+
'unicorn/prefer-add-event-listener': string;
|
|
108
|
+
'unicorn/prefer-array-find': (string | {
|
|
109
|
+
checkFromLast: boolean;
|
|
110
|
+
})[];
|
|
111
|
+
'unicorn/prefer-array-flat': string;
|
|
112
|
+
'unicorn/prefer-array-flat-map': string;
|
|
113
|
+
'unicorn/prefer-array-index-of': string;
|
|
114
|
+
'unicorn/prefer-array-some': string;
|
|
115
|
+
'unicorn/prefer-at': string;
|
|
116
|
+
'unicorn/prefer-blob-reading-methods': string;
|
|
117
|
+
'unicorn/prefer-code-point': string;
|
|
118
|
+
'unicorn/prefer-date-now': string;
|
|
119
|
+
'unicorn/prefer-default-parameters': string;
|
|
120
|
+
'unicorn/prefer-dom-node-append': string;
|
|
121
|
+
'unicorn/prefer-dom-node-dataset': string;
|
|
122
|
+
'unicorn/prefer-dom-node-remove': string;
|
|
123
|
+
'unicorn/prefer-dom-node-text-content': string;
|
|
124
|
+
'unicorn/prefer-event-target': string;
|
|
125
|
+
'unicorn/prefer-export-from': string;
|
|
126
|
+
'unicorn/prefer-global-this': string;
|
|
127
|
+
'unicorn/prefer-includes': string;
|
|
128
|
+
'unicorn/prefer-json-parse-buffer': string;
|
|
129
|
+
'unicorn/prefer-keyboard-event-key': string;
|
|
130
|
+
'unicorn/prefer-logical-operator-over-ternary': string;
|
|
131
|
+
'unicorn/prefer-math-min-max': string;
|
|
132
|
+
'unicorn/prefer-math-trunc': string;
|
|
133
|
+
'unicorn/prefer-modern-dom-apis': string;
|
|
134
|
+
'unicorn/prefer-modern-math-apis': string;
|
|
135
|
+
'unicorn/prefer-module': string;
|
|
136
|
+
'unicorn/prefer-native-coercion-functions': string;
|
|
137
|
+
'unicorn/prefer-negative-index': string;
|
|
138
|
+
'unicorn/prefer-node-protocol': string;
|
|
139
|
+
'unicorn/prefer-number-properties': (string | {
|
|
140
|
+
checkInfinity: boolean;
|
|
141
|
+
checkNaN: boolean;
|
|
142
|
+
})[];
|
|
143
|
+
'unicorn/prefer-object-from-entries': (string | {
|
|
144
|
+
functions: never[];
|
|
145
|
+
})[];
|
|
146
|
+
'unicorn/prefer-optional-catch-binding': string;
|
|
147
|
+
'unicorn/prefer-prototype-methods': string;
|
|
148
|
+
'unicorn/prefer-query-selector': string;
|
|
149
|
+
'unicorn/prefer-reflect-apply': string;
|
|
150
|
+
'unicorn/prefer-regexp-test': string;
|
|
151
|
+
'unicorn/prefer-set-has': string;
|
|
152
|
+
'unicorn/prefer-set-size': string;
|
|
153
|
+
'unicorn/prefer-spread': string;
|
|
154
|
+
'unicorn/prefer-string-raw': string;
|
|
155
|
+
'unicorn/prefer-string-replace-all': string;
|
|
156
|
+
'unicorn/prefer-string-slice': string;
|
|
157
|
+
'unicorn/prefer-string-starts-ends-with': string;
|
|
158
|
+
'unicorn/prefer-string-trim-start-end': string;
|
|
159
|
+
'unicorn/prefer-structured-clone': string;
|
|
160
|
+
'unicorn/prefer-switch': (string | {
|
|
161
|
+
minimumCases: number;
|
|
162
|
+
emptyDefaultCase: string;
|
|
163
|
+
})[];
|
|
164
|
+
'unicorn/prefer-ternary': string;
|
|
165
|
+
'unicorn/prefer-top-level-await': string;
|
|
166
|
+
'unicorn/prefer-type-error': string;
|
|
167
|
+
'unicorn/prevent-abbreviations': (string | import("./rules/prevent-abbreviations").UnicornPreventAbbreviations)[];
|
|
168
|
+
'unicorn/relative-url-style': string[];
|
|
169
|
+
'unicorn/require-array-join-separator': string;
|
|
170
|
+
'unicorn/require-number-to-fixed-digits-argument': string;
|
|
171
|
+
'unicorn/require-post-message-target-origin': string;
|
|
172
|
+
'unicorn/string-content': string;
|
|
173
|
+
'unicorn/switch-case-braces': string;
|
|
174
|
+
'unicorn/template-indent': string;
|
|
175
|
+
'unicorn/text-encoding-identifier-case': string;
|
|
176
|
+
'unicorn/throw-new-error': string;
|
|
177
|
+
};
|
|
178
|
+
};
|
package/rxjs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function rxjsConfig(files?: string[]): Record<string, unknown>;
|
package/rxjs.js
CHANGED
|
@@ -40,15 +40,15 @@ function rxjsConfig(files = ['**/*.ts?(x)']) {
|
|
|
40
40
|
return {
|
|
41
41
|
files,
|
|
42
42
|
languageOptions: {
|
|
43
|
+
sourceType: 'module',
|
|
44
|
+
ecmaVersion: 'latest',
|
|
43
45
|
parser: tsEslint.parser,
|
|
44
46
|
parserOptions: {
|
|
45
|
-
ecmaVersion: 6,
|
|
46
47
|
ecmaFeatures: {
|
|
47
48
|
globalReturn: false,
|
|
48
49
|
impliedStrict: true,
|
|
49
50
|
},
|
|
50
|
-
|
|
51
|
-
project: './tsconfig.json',
|
|
51
|
+
projectService: true,
|
|
52
52
|
warnOnUnsupportedTypeScriptVersion: true,
|
|
53
53
|
},
|
|
54
54
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function testingLibraryConfig(files?: string[]): Record<string, unknown>;
|