@quentinhsu/biome-config 0.2.0 → 0.2.1
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 +44 -0
- package/package.json +7 -4
- package/dist/build.mjs +0 -387
- package/dist/index.jsonc +0 -152
- package/dist/index.mjs +0 -357
- package/dist/next.jsonc +0 -169
- package/dist/nuxt.jsonc +0 -224
- package/dist/react.jsonc +0 -167
- package/dist/types/scripts/generate-biome-types.d.ts +0 -1
- package/dist/types/scripts/generate-changelog.d.ts +0 -6
- package/dist/types/src/build.d.ts +0 -1
- package/dist/types/src/constants/biome.d.ts +0 -1
- package/dist/types/src/generated/biome/index.d.ts +0 -11
- package/dist/types/src/generated/biome/no-compare-neg-zero-configuration.d.ts +0 -986
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +0 -306
- package/dist/types/src/generated/biome/no-nested-ternary-options.d.ts +0 -292
- package/dist/types/src/generated/biome/no-octal-escape-options.d.ts +0 -1138
- package/dist/types/src/generated/biome/no-shadow-configuration.d.ts +0 -241
- package/dist/types/src/generated/biome/nursery.d.ts +0 -1023
- package/dist/types/src/generated/biome/rule-with-no-duplicate-custom-properties-options.d.ts +0 -1095
- package/dist/types/src/generated/biome/rule-with-no-useless-catch-options.d.ts +0 -1430
- package/dist/types/src/generated/biome/rule-with-use-image-size-options.d.ts +0 -1339
- package/dist/types/src/generated/biome/schema.d.ts +0 -291
- package/dist/types/src/generated/biome/use-valid-lang-configuration.d.ts +0 -163
- package/dist/types/src/index.d.ts +0 -15
- package/dist/types/src/presets/next.d.ts +0 -1
- package/dist/types/src/presets/nuxt.d.ts +0 -1
- package/dist/types/src/presets/react.d.ts +0 -1
- package/dist/types/src/presets/vue.d.ts +0 -1
- package/dist/types/src/source/index.d.ts +0 -2
- package/dist/types/src/types.d.ts +0 -1
- package/dist/types/src/utils/merge.d.ts +0 -2
- package/dist/vue.jsonc +0 -176
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
export interface NoGlobalObjectCallsOptions {
|
|
2
|
-
}
|
|
3
|
-
export interface NoInnerDeclarationsOptions {
|
|
4
|
-
}
|
|
5
|
-
export interface NoInvalidBuiltinInstantiationOptions {
|
|
6
|
-
}
|
|
7
|
-
export interface NoInvalidConstructorSuperOptions {
|
|
8
|
-
}
|
|
9
|
-
export interface NoInvalidDirectionInLinearGradientOptions {
|
|
10
|
-
}
|
|
11
|
-
export interface NoInvalidGridAreasOptions {
|
|
12
|
-
}
|
|
13
|
-
export interface NoInvalidPositionAtImportRuleOptions {
|
|
14
|
-
}
|
|
15
|
-
export interface NoInvalidUseBeforeDeclarationOptions {
|
|
16
|
-
}
|
|
17
|
-
export interface NoMissingVarFunctionOptions {
|
|
18
|
-
}
|
|
19
|
-
export interface NoNestedComponentDefinitionsOptions {
|
|
20
|
-
}
|
|
21
|
-
export interface NoNodejsModulesOptions {
|
|
22
|
-
}
|
|
23
|
-
export interface NoNonoctalDecimalEscapeOptions {
|
|
24
|
-
}
|
|
25
|
-
export interface NoPrecisionLossOptions {
|
|
26
|
-
}
|
|
27
|
-
export type Visibility = 'public' | 'package' | 'private';
|
|
28
|
-
export interface NoProcessGlobalOptions {
|
|
29
|
-
}
|
|
30
|
-
export interface NoReactPropAssignmentsOptions {
|
|
31
|
-
}
|
|
32
|
-
export interface NoRenderReturnValueOptions {
|
|
33
|
-
}
|
|
34
|
-
export interface CustomRestrictedElements {
|
|
35
|
-
[k: string]: string;
|
|
36
|
-
}
|
|
37
|
-
export interface NoSelfAssignOptions {
|
|
38
|
-
}
|
|
39
|
-
export interface NoSetterReturnOptions {
|
|
40
|
-
}
|
|
41
|
-
export interface NoSolidDestructuredPropsOptions {
|
|
42
|
-
}
|
|
43
|
-
export interface NoStringCaseMismatchOptions {
|
|
44
|
-
}
|
|
45
|
-
export interface NoSwitchDeclarationsOptions {
|
|
46
|
-
}
|
|
47
|
-
export type DependencyAvailability = boolean | [string, ...string[]];
|
|
48
|
-
export interface NoUndeclaredVariablesOptions {
|
|
49
|
-
/**
|
|
50
|
-
* Check undeclared types.
|
|
51
|
-
*/
|
|
52
|
-
checkTypes?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export interface NoUnknownFunctionOptions {
|
|
55
|
-
}
|
|
56
|
-
export interface NoUnknownMediaFeatureNameOptions {
|
|
57
|
-
}
|
|
58
|
-
export interface NoUnknownPropertyOptions {
|
|
59
|
-
}
|
|
60
|
-
export interface NoUnknownPseudoClassOptions {
|
|
61
|
-
}
|
|
62
|
-
export interface NoUnknownPseudoElementOptions {
|
|
63
|
-
}
|
|
64
|
-
export interface NoUnknownTypeSelectorOptions {
|
|
65
|
-
}
|
|
66
|
-
export interface NoUnknownUnitOptions {
|
|
67
|
-
}
|
|
68
|
-
export interface NoUnmatchableAnbSelectorOptions {
|
|
69
|
-
}
|
|
70
|
-
export interface NoUnreachableOptions {
|
|
71
|
-
}
|
|
72
|
-
export interface NoUnreachableSuperOptions {
|
|
73
|
-
}
|
|
74
|
-
export interface NoUnsafeFinallyOptions {
|
|
75
|
-
}
|
|
76
|
-
export interface NoUnsafeOptionalChainingOptions {
|
|
77
|
-
}
|
|
78
|
-
export interface NoUnusedFunctionParametersOptions {
|
|
79
|
-
/**
|
|
80
|
-
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
81
|
-
*/
|
|
82
|
-
ignoreRestSiblings?: boolean;
|
|
83
|
-
}
|
|
84
|
-
export interface NoUnusedImportsOptions {
|
|
85
|
-
}
|
|
86
|
-
export interface NoUnusedLabelsOptions {
|
|
87
|
-
}
|
|
88
|
-
export interface NoUnusedPrivateClassMembersOptions {
|
|
89
|
-
}
|
|
90
|
-
export interface NoUnusedVariablesOptions {
|
|
91
|
-
/**
|
|
92
|
-
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
93
|
-
*/
|
|
94
|
-
ignoreRestSiblings?: boolean;
|
|
95
|
-
}
|
|
96
|
-
export interface NoVoidElementsWithChildrenOptions {
|
|
97
|
-
}
|
|
98
|
-
export interface NoVoidTypeReturnOptions {
|
|
99
|
-
}
|
|
100
|
-
export type StableHookResult = boolean | [number, ...number[]] | [string, ...string[]];
|
|
101
|
-
export interface UseGraphqlNamedOperationsOptions {
|
|
102
|
-
}
|
|
103
|
-
export interface UseHookAtTopLevelOptions {
|
|
104
|
-
}
|
|
105
|
-
export interface UseImportExtensionsOptions {
|
|
106
|
-
/**
|
|
107
|
-
* If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.
|
|
108
|
-
*/
|
|
109
|
-
forceJsExtensions?: boolean;
|
|
110
|
-
}
|
|
111
|
-
export interface UseIsNanOptions {
|
|
112
|
-
}
|
|
113
|
-
export interface UseJsonImportAttributesOptions {
|
|
114
|
-
}
|
|
115
|
-
export interface UseJsxKeyInIterableOptions {
|
|
116
|
-
/**
|
|
117
|
-
* Set to `true` to check shorthand fragments (`<></>`)
|
|
118
|
-
*/
|
|
119
|
-
checkShorthandFragments?: boolean;
|
|
120
|
-
}
|
|
121
|
-
export interface UseParseIntRadixOptions {
|
|
122
|
-
}
|
|
123
|
-
export interface UseSingleJsDocAsteriskOptions {
|
|
124
|
-
}
|
|
125
|
-
export interface UseUniqueElementIdsOptions {
|
|
126
|
-
/**
|
|
127
|
-
* Component names that accept an `id` prop that does not translate to a DOM element id.
|
|
128
|
-
*/
|
|
129
|
-
excludedComponents?: string[];
|
|
130
|
-
}
|
|
131
|
-
export interface UseValidForDirectionOptions {
|
|
132
|
-
}
|
|
133
|
-
export interface UseValidTypeofOptions {
|
|
134
|
-
}
|
|
135
|
-
export interface UseYieldOptions {
|
|
136
|
-
}
|
|
137
|
-
export interface NoDeprecatedImportsOptions {
|
|
138
|
-
}
|
|
139
|
-
export interface NoDuplicateDependenciesOptions {
|
|
140
|
-
}
|
|
141
|
-
export interface NoFloatingPromisesOptions {
|
|
142
|
-
}
|
|
143
|
-
export interface NoImportCyclesOptions {
|
|
144
|
-
/**
|
|
145
|
-
* Ignores type-only imports when finding an import cycle. A type-only import (`import type`) will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type imports (`import { type Foo }`) aren't considered as type-only because it's not removed by the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.
|
|
146
|
-
*/
|
|
147
|
-
ignoreTypes?: boolean;
|
|
148
|
-
}
|
|
149
|
-
export interface NoJsxLiteralsOptions {
|
|
150
|
-
/**
|
|
151
|
-
* An array of strings that won't trigger the rule. Whitespaces are taken into consideration
|
|
152
|
-
*/
|
|
153
|
-
allowedStrings?: string[];
|
|
154
|
-
/**
|
|
155
|
-
* When enabled, strings inside props are always ignored
|
|
156
|
-
*/
|
|
157
|
-
ignoreProps?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* When enabled, also flag string literals inside JSX expressions and attributes
|
|
160
|
-
*/
|
|
161
|
-
noStrings?: boolean;
|
|
162
|
-
}
|
|
163
|
-
export interface NoMisusedPromisesOptions {
|
|
164
|
-
}
|
|
165
|
-
export interface NoNextAsyncClientComponentOptions {
|
|
166
|
-
}
|
|
167
|
-
export interface NoNonNullAssertedOptionalChainOptions {
|
|
168
|
-
}
|
|
169
|
-
export interface NoQwikUseVisibleTaskOptions {
|
|
170
|
-
}
|
|
171
|
-
export interface NoReactForwardRefOptions {
|
|
172
|
-
}
|
|
173
|
-
export interface NoSecretsOptions {
|
|
174
|
-
/**
|
|
175
|
-
* Set entropy threshold (default is 41).
|
|
176
|
-
*/
|
|
177
|
-
entropyThreshold?: number | null;
|
|
178
|
-
}
|
|
179
|
-
export interface NoShadowOptions {
|
|
180
|
-
}
|
|
181
|
-
export interface NoUnnecessaryConditionsOptions {
|
|
182
|
-
}
|
|
183
|
-
export interface NoUnresolvedImportsOptions {
|
|
184
|
-
}
|
|
185
|
-
export interface NoUnusedExpressionsOptions {
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Options for the `noUselessCatchBinding` rule. Currently empty; reserved for future extensions (e.g. allowlist of names).
|
|
189
|
-
*/
|
|
190
|
-
export interface NoUselessCatchBindingOptions {
|
|
191
|
-
}
|
|
192
|
-
export interface NoUselessUndefinedOptions {
|
|
193
|
-
}
|
|
194
|
-
export interface NoVueDataObjectDeclarationOptions {
|
|
195
|
-
}
|
|
196
|
-
export interface NoVueDuplicateKeysOptions {
|
|
197
|
-
}
|
|
198
|
-
export interface NoVueReservedKeysOptions {
|
|
199
|
-
}
|
|
200
|
-
export interface NoVueReservedPropsOptions {
|
|
201
|
-
}
|
|
202
|
-
export type UseAnchorHrefOptions = null;
|
|
203
|
-
export type UseConsistentArrowReturnStyle = 'asNeeded' | 'always' | 'never';
|
|
204
|
-
export type ConsistentTypeDefinition = 'interface' | 'type';
|
|
205
|
-
export interface UseDeprecatedDateOptions {
|
|
206
|
-
argumentName?: string;
|
|
207
|
-
}
|
|
208
|
-
export interface UseExhaustiveSwitchCasesOptions {
|
|
209
|
-
}
|
|
210
|
-
export interface UseExplicitTypeOptions {
|
|
211
|
-
}
|
|
212
|
-
export type UseImageSizeOptions = null;
|
|
213
|
-
export interface UseMaxParamsOptions {
|
|
214
|
-
/**
|
|
215
|
-
* Maximum number of parameters allowed (default: 4)
|
|
216
|
-
*/
|
|
217
|
-
max?: number;
|
|
218
|
-
}
|
|
219
|
-
export interface UseQwikClasslistOptions {
|
|
220
|
-
}
|
|
221
|
-
export interface UseQwikMethodUsageOptions {
|
|
222
|
-
}
|
|
223
|
-
export interface UseQwikValidLexicalScopeOptions {
|
|
224
|
-
}
|
|
225
|
-
export interface UseReactFunctionComponentsOptions {
|
|
226
|
-
}
|
|
227
|
-
export interface UseSortedClassesOptions {
|
|
228
|
-
/**
|
|
229
|
-
* Additional attributes that will be sorted.
|
|
230
|
-
*/
|
|
231
|
-
attributes?: string[] | null;
|
|
232
|
-
/**
|
|
233
|
-
* Names of the functions or tagged templates that will be sorted.
|
|
234
|
-
*/
|
|
235
|
-
functions?: string[] | null;
|
|
236
|
-
}
|
|
237
|
-
export interface UseVueMultiWordComponentNamesOptions {
|
|
238
|
-
/**
|
|
239
|
-
* Component names to ignore (allowed to be single-word).
|
|
240
|
-
*/
|
|
241
|
-
ignores?: string[];
|
|
242
|
-
}
|
|
243
|
-
export interface NoAccumulatingSpreadOptions {
|
|
244
|
-
}
|
|
245
|
-
export interface NoAwaitInLoopsOptions {
|
|
246
|
-
}
|
|
247
|
-
export interface NoBarrelFileOptions {
|
|
248
|
-
}
|
|
249
|
-
export interface NoDeleteOptions {
|
|
250
|
-
}
|
|
251
|
-
export interface NoDynamicNamespaceImportAccessOptions {
|
|
252
|
-
}
|
|
253
|
-
export interface NoImgElementOptions {
|
|
254
|
-
}
|
|
255
|
-
export interface NoNamespaceImportOptions {
|
|
256
|
-
}
|
|
257
|
-
export interface NoReExportAllOptions {
|
|
258
|
-
}
|
|
259
|
-
export interface NoUnwantedPolyfillioOptions {
|
|
260
|
-
}
|
|
261
|
-
export interface UseGoogleFontPreconnectOptions {
|
|
262
|
-
}
|
|
263
|
-
export interface UseSolidForComponentOptions {
|
|
264
|
-
}
|
|
265
|
-
export interface UseTopLevelRegexOptions {
|
|
266
|
-
}
|
|
267
|
-
export interface NoBlankTargetOptions {
|
|
268
|
-
/**
|
|
269
|
-
* List of domains where `target="_blank"` is allowed without `rel="noopener"`.
|
|
270
|
-
*/
|
|
271
|
-
allowDomains?: string[];
|
|
272
|
-
/**
|
|
273
|
-
* Whether `noreferrer` is allowed in addition to `noopener`.
|
|
274
|
-
*/
|
|
275
|
-
allowNoReferrer?: boolean;
|
|
276
|
-
}
|
|
277
|
-
export interface NoDangerouslySetInnerHtmlOptions {
|
|
278
|
-
}
|
|
279
|
-
export interface NoDangerouslySetInnerHtmlWithChildrenOptions {
|
|
280
|
-
}
|
|
281
|
-
export interface NoGlobalEvalOptions {
|
|
282
|
-
}
|
|
283
|
-
export interface NoCommonJsOptions {
|
|
284
|
-
}
|
|
285
|
-
export interface NoDefaultExportOptions {
|
|
286
|
-
}
|
|
287
|
-
export interface NoDescendingSpecificityOptions {
|
|
288
|
-
}
|
|
289
|
-
export interface NoDoneCallbackOptions {
|
|
290
|
-
}
|
|
291
|
-
export interface NoEnumOptions {
|
|
292
|
-
}
|
|
293
|
-
export interface NoExportedImportsOptions {
|
|
294
|
-
}
|
|
295
|
-
export interface NoHeadElementOptions {
|
|
296
|
-
}
|
|
297
|
-
export interface NoImplicitBooleanOptions {
|
|
298
|
-
}
|
|
299
|
-
export interface NoInferrableTypesOptions {
|
|
300
|
-
}
|
|
301
|
-
export interface NoMagicNumbersOptions {
|
|
302
|
-
}
|
|
303
|
-
export interface NoNamespaceOptions {
|
|
304
|
-
}
|
|
305
|
-
export interface NoNegationElseOptions {
|
|
306
|
-
}
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
export interface NoNestedTernaryOptions {
|
|
2
|
-
}
|
|
3
|
-
export interface NoNonNullAssertionOptions {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Specifies whether property assignments on function parameters are allowed or denied.
|
|
7
|
-
*/
|
|
8
|
-
export type PropertyAssignmentMode = 'allow' | 'deny';
|
|
9
|
-
export interface NoParameterPropertiesOptions {
|
|
10
|
-
}
|
|
11
|
-
export interface NoProcessEnvOptions {
|
|
12
|
-
}
|
|
13
|
-
export interface NoRestrictedGlobalsOptions {
|
|
14
|
-
/**
|
|
15
|
-
* A list of names that should trigger the rule
|
|
16
|
-
*/
|
|
17
|
-
deniedGlobals?: {
|
|
18
|
-
[k: string]: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface PathOptions {
|
|
22
|
-
/**
|
|
23
|
-
* Names of the exported members that allowed to be not be used.
|
|
24
|
-
*/
|
|
25
|
-
allowImportNames?: string[];
|
|
26
|
-
/**
|
|
27
|
-
* Names of the exported members that should not be used.
|
|
28
|
-
*/
|
|
29
|
-
importNames?: string[];
|
|
30
|
-
/**
|
|
31
|
-
* The message to display when this module is imported.
|
|
32
|
-
*/
|
|
33
|
-
message?: string;
|
|
34
|
-
}
|
|
35
|
-
export type Regex = string;
|
|
36
|
-
export interface CustomRestrictedTypeOptions {
|
|
37
|
-
message?: string;
|
|
38
|
-
use?: string | null;
|
|
39
|
-
}
|
|
40
|
-
export interface NoShoutyConstantsOptions {
|
|
41
|
-
}
|
|
42
|
-
export interface NoSubstrOptions {
|
|
43
|
-
}
|
|
44
|
-
export interface NoUnusedTemplateLiteralOptions {
|
|
45
|
-
}
|
|
46
|
-
export interface NoUselessElseOptions {
|
|
47
|
-
}
|
|
48
|
-
export interface NoValueAtRuleOptions {
|
|
49
|
-
}
|
|
50
|
-
export interface NoYodaExpressionOptions {
|
|
51
|
-
}
|
|
52
|
-
export interface UseArrayLiteralsOptions {
|
|
53
|
-
}
|
|
54
|
-
export interface UseAsConstAssertionOptions {
|
|
55
|
-
}
|
|
56
|
-
export interface UseAtIndexOptions {
|
|
57
|
-
}
|
|
58
|
-
export interface UseBlockStatementsOptions {
|
|
59
|
-
}
|
|
60
|
-
export interface UseCollapsedElseIfOptions {
|
|
61
|
-
}
|
|
62
|
-
export interface UseCollapsedIfOptions {
|
|
63
|
-
}
|
|
64
|
-
export interface UseComponentExportOnlyModulesOptions {
|
|
65
|
-
/**
|
|
66
|
-
* Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
|
|
67
|
-
*/
|
|
68
|
-
allowConstantExport?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
|
|
71
|
-
*/
|
|
72
|
-
allowExportNames?: string[];
|
|
73
|
-
}
|
|
74
|
-
export type ConsistentArrayType = 'shorthand' | 'generic';
|
|
75
|
-
export interface UseConsistentBuiltinInstantiationOptions {
|
|
76
|
-
}
|
|
77
|
-
export interface UseConsistentCurlyBracesOptions {
|
|
78
|
-
}
|
|
79
|
-
export type Accessibility = 'noPublic' | 'explicit' | 'none';
|
|
80
|
-
export type ObjectPropertySyntax = 'explicit' | 'shorthand';
|
|
81
|
-
export interface UseConstOptions {
|
|
82
|
-
}
|
|
83
|
-
export interface UseDefaultParameterLastOptions {
|
|
84
|
-
}
|
|
85
|
-
export interface UseDefaultSwitchClauseOptions {
|
|
86
|
-
}
|
|
87
|
-
export interface UseDeprecatedReasonOptions {
|
|
88
|
-
}
|
|
89
|
-
export interface UseEnumInitializersOptions {
|
|
90
|
-
}
|
|
91
|
-
export interface UseExplicitLengthCheckOptions {
|
|
92
|
-
}
|
|
93
|
-
export interface UseExponentiationOperatorOptions {
|
|
94
|
-
}
|
|
95
|
-
export interface UseExportTypeOptions {
|
|
96
|
-
}
|
|
97
|
-
export interface UseExportsLastOptions {
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Supported cases for file names.
|
|
101
|
-
*/
|
|
102
|
-
export type FilenameCase = 'camelCase' | 'export' | 'kebab-case' | 'PascalCase' | 'snake_case';
|
|
103
|
-
export interface UseForOfOptions {
|
|
104
|
-
}
|
|
105
|
-
export interface UseFragmentSyntaxOptions {
|
|
106
|
-
}
|
|
107
|
-
export interface UseGraphqlNamingConventionOptions {
|
|
108
|
-
}
|
|
109
|
-
export interface UseGroupedAccessorPairsOptions {
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Rule's options.
|
|
113
|
-
*/
|
|
114
|
-
export type Style2 = 'auto' | 'inlineType' | 'separatedType';
|
|
115
|
-
export interface UseLiteralEnumMembersOptions {
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Supported cases.
|
|
119
|
-
*/
|
|
120
|
-
export type Format = 'camelCase' | 'CONSTANT_CASE' | 'PascalCase' | 'snake_case';
|
|
121
|
-
export type Kind = ('class' | 'enum' | 'interface' | 'enumMember' | 'importNamespace' | 'exportNamespace' | 'variable' | 'const' | 'let' | 'using' | 'var' | 'catchParameter' | 'indexParameter' | 'exportAlias' | 'importAlias' | 'classGetter' | 'classSetter' | 'classMethod' | 'objectLiteralProperty' | 'objectLiteralGetter' | 'objectLiteralSetter' | 'objectLiteralMethod' | 'typeAlias') | 'any' | 'typeLike' | 'function' | 'namespaceLike' | 'namespace' | 'functionParameter' | 'typeParameter' | 'classMember' | 'classProperty' | 'objectLiteralMember' | 'typeMember' | 'typeGetter' | 'typeProperty' | 'typeSetter' | 'typeMethod';
|
|
122
|
-
export type RestrictedModifier = 'abstract' | 'private' | 'protected' | 'readonly' | 'static';
|
|
123
|
-
export type Scope = 'any' | 'global';
|
|
124
|
-
export interface UseNodeAssertStrictOptions {
|
|
125
|
-
}
|
|
126
|
-
export interface UseNodejsImportProtocolOptions {
|
|
127
|
-
}
|
|
128
|
-
export interface UseNumberNamespaceOptions {
|
|
129
|
-
}
|
|
130
|
-
export interface UseNumericSeparatorsOptions {
|
|
131
|
-
}
|
|
132
|
-
export interface UseObjectSpreadOptions {
|
|
133
|
-
}
|
|
134
|
-
export interface UseReadonlyClassPropertiesOptions {
|
|
135
|
-
/**
|
|
136
|
-
* When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
|
|
137
|
-
*/
|
|
138
|
-
checkAllProperties?: boolean;
|
|
139
|
-
}
|
|
140
|
-
export interface UseSelfClosingElementsOptions {
|
|
141
|
-
ignoreHtmlElements?: boolean;
|
|
142
|
-
}
|
|
143
|
-
export interface UseShorthandAssignOptions {
|
|
144
|
-
}
|
|
145
|
-
export interface UseShorthandFunctionTypeOptions {
|
|
146
|
-
}
|
|
147
|
-
export interface UseSingleVarDeclaratorOptions {
|
|
148
|
-
}
|
|
149
|
-
export interface UseSymbolDescriptionOptions {
|
|
150
|
-
}
|
|
151
|
-
export interface UseTemplateOptions {
|
|
152
|
-
}
|
|
153
|
-
export interface UseThrowNewErrorOptions {
|
|
154
|
-
}
|
|
155
|
-
export interface UseThrowOnlyErrorOptions {
|
|
156
|
-
}
|
|
157
|
-
export interface UseTrimStartEndOptions {
|
|
158
|
-
}
|
|
159
|
-
export interface UseUnifiedTypeSignaturesOptions {
|
|
160
|
-
}
|
|
161
|
-
export interface NoAlertOptions {
|
|
162
|
-
}
|
|
163
|
-
export interface NoApproximativeNumericConstantOptions {
|
|
164
|
-
}
|
|
165
|
-
export interface NoArrayIndexKeyOptions {
|
|
166
|
-
}
|
|
167
|
-
export interface NoAssignInExpressionsOptions {
|
|
168
|
-
}
|
|
169
|
-
export interface NoAsyncPromiseExecutorOptions {
|
|
170
|
-
}
|
|
171
|
-
export interface NoBiomeFirstExceptionOptions {
|
|
172
|
-
}
|
|
173
|
-
export interface NoBitwiseOperatorsOptions {
|
|
174
|
-
/**
|
|
175
|
-
* Allows a list of bitwise operators to be used as exceptions.
|
|
176
|
-
*/
|
|
177
|
-
allow?: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface NoCatchAssignOptions {
|
|
180
|
-
}
|
|
181
|
-
export interface NoClassAssignOptions {
|
|
182
|
-
}
|
|
183
|
-
export interface NoCommentTextOptions {
|
|
184
|
-
}
|
|
185
|
-
export interface NoCompareNegZeroOptions {
|
|
186
|
-
}
|
|
187
|
-
export interface NoConfusingLabelsOptions {
|
|
188
|
-
/**
|
|
189
|
-
* A list of (non-confusing) labels that should be allowed
|
|
190
|
-
*/
|
|
191
|
-
allowedLabels?: string[];
|
|
192
|
-
}
|
|
193
|
-
export interface NoConfusingVoidTypeOptions {
|
|
194
|
-
}
|
|
195
|
-
export interface NoConsoleOptions {
|
|
196
|
-
/**
|
|
197
|
-
* Allowed calls on the console object.
|
|
198
|
-
*/
|
|
199
|
-
allow?: string[];
|
|
200
|
-
}
|
|
201
|
-
export interface NoConstEnumOptions {
|
|
202
|
-
}
|
|
203
|
-
export interface NoConstantBinaryExpressionsOptions {
|
|
204
|
-
}
|
|
205
|
-
export interface NoControlCharactersInRegexOptions {
|
|
206
|
-
}
|
|
207
|
-
export interface NoDebuggerOptions {
|
|
208
|
-
}
|
|
209
|
-
export interface NoDocumentCookieOptions {
|
|
210
|
-
}
|
|
211
|
-
export interface NoDocumentImportInPageOptions {
|
|
212
|
-
}
|
|
213
|
-
export interface NoDoubleEqualsOptions {
|
|
214
|
-
/**
|
|
215
|
-
* If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.
|
|
216
|
-
*
|
|
217
|
-
* If `false`, no such exception will be made.
|
|
218
|
-
*/
|
|
219
|
-
ignoreNull?: boolean;
|
|
220
|
-
}
|
|
221
|
-
export interface NoDuplicateAtImportRulesOptions {
|
|
222
|
-
}
|
|
223
|
-
export interface NoDuplicateCaseOptions {
|
|
224
|
-
}
|
|
225
|
-
export interface NoDuplicateClassMembersOptions {
|
|
226
|
-
}
|
|
227
|
-
export interface NoDuplicateCustomPropertiesOptions {
|
|
228
|
-
}
|
|
229
|
-
export interface NoDuplicateElseIfOptions {
|
|
230
|
-
}
|
|
231
|
-
export interface NoDuplicateFieldsOptions {
|
|
232
|
-
}
|
|
233
|
-
export interface NoDuplicateFontNamesOptions {
|
|
234
|
-
}
|
|
235
|
-
export interface NoDuplicateJsxPropsOptions {
|
|
236
|
-
}
|
|
237
|
-
export interface NoDuplicateObjectKeysOptions {
|
|
238
|
-
}
|
|
239
|
-
export interface NoDuplicateParametersOptions {
|
|
240
|
-
}
|
|
241
|
-
export interface NoDuplicatePropertiesOptions {
|
|
242
|
-
}
|
|
243
|
-
export interface NoDuplicateSelectorsKeyframeBlockOptions {
|
|
244
|
-
}
|
|
245
|
-
export interface NoDuplicateTestHooksOptions {
|
|
246
|
-
}
|
|
247
|
-
export interface NoEmptyBlockOptions {
|
|
248
|
-
}
|
|
249
|
-
export interface NoEmptyBlockStatementsOptions {
|
|
250
|
-
}
|
|
251
|
-
export interface NoEmptyInterfaceOptions {
|
|
252
|
-
}
|
|
253
|
-
export interface NoEvolvingTypesOptions {
|
|
254
|
-
}
|
|
255
|
-
export interface NoExplicitAnyOptions {
|
|
256
|
-
}
|
|
257
|
-
export interface NoExportsInTestOptions {
|
|
258
|
-
}
|
|
259
|
-
export interface NoExtraNonNullAssertionOptions {
|
|
260
|
-
}
|
|
261
|
-
export interface NoFallthroughSwitchClauseOptions {
|
|
262
|
-
}
|
|
263
|
-
export interface NoFocusedTestsOptions {
|
|
264
|
-
}
|
|
265
|
-
export interface NoFunctionAssignOptions {
|
|
266
|
-
}
|
|
267
|
-
export interface NoGlobalAssignOptions {
|
|
268
|
-
}
|
|
269
|
-
export interface NoGlobalIsFiniteOptions {
|
|
270
|
-
}
|
|
271
|
-
export interface NoGlobalIsNanOptions {
|
|
272
|
-
}
|
|
273
|
-
export interface NoHeadImportInDocumentOptions {
|
|
274
|
-
}
|
|
275
|
-
export interface NoImplicitAnyLetOptions {
|
|
276
|
-
}
|
|
277
|
-
export interface NoImportAssignOptions {
|
|
278
|
-
}
|
|
279
|
-
export interface NoImportantInKeyframeOptions {
|
|
280
|
-
}
|
|
281
|
-
export interface NoIrregularWhitespaceOptions {
|
|
282
|
-
}
|
|
283
|
-
export interface NoLabelVarOptions {
|
|
284
|
-
}
|
|
285
|
-
export interface NoMisleadingCharacterClassOptions {
|
|
286
|
-
}
|
|
287
|
-
export interface NoMisleadingInstantiatorOptions {
|
|
288
|
-
}
|
|
289
|
-
export interface NoMisplacedAssertionOptions {
|
|
290
|
-
}
|
|
291
|
-
export interface NoMisrefactoredShorthandAssignOptions {
|
|
292
|
-
}
|