@quentinhsu/biome-config 0.3.3 → 0.4.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/131.mjs +358 -0
- package/dist/build.mjs +108 -360
- package/dist/index.jsonc +56 -56
- package/dist/index.mjs +1 -358
- package/dist/next.jsonc +60 -60
- package/dist/nuxt.jsonc +91 -91
- package/dist/react.jsonc +58 -58
- package/dist/rslib-runtime.mjs +38 -0
- package/dist/types/scripts/tag-release.d.ts +1 -0
- package/dist/types/scripts/validate-config-properties.d.ts +1 -0
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +11 -8
- package/dist/types/src/generated/biome/no-comment-text-options.d.ts +761 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +97 -97
- package/dist/types/src/generated/biome/no-sync-scripts-configuration.d.ts +185 -0
- package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → no-useless-constructor-configuration.d.ts} +31 -49
- package/dist/types/src/generated/biome/nursery.d.ts +393 -594
- package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → pattern-options.d.ts} +252 -179
- package/dist/types/src/generated/biome/rule-with-no-access-key-options.d.ts +555 -0
- package/dist/types/src/generated/biome/rule-with-no-blank-target-options.d.ts +530 -0
- package/dist/types/src/generated/biome/rule-with-no-fallthrough-switch-clause-options.d.ts +469 -0
- package/dist/types/src/generated/biome/rule-with-no-unknown-unit-options.d.ts +564 -0
- package/dist/types/src/generated/biome/schema.d.ts +35 -17
- package/dist/types/src/generated/biome/style.d.ts +614 -0
- package/dist/types/src/generated/biome/use-for-of-configuration.d.ts +144 -0
- package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → use-unique-variable-names-options.d.ts} +141 -119
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue.jsonc +60 -60
- package/package.json +38 -34
- package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +0 -241
- package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +0 -1116
- package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +0 -1148
- package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +0 -1440
- package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +0 -1341
package/package.json
CHANGED
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@quentinhsu/biome-config",
|
|
3
|
-
"version": "0.3.3",
|
|
4
2
|
"author": "QuentinHsu",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/QuentinHsu/biome-config.git"
|
|
9
|
-
},
|
|
10
3
|
"description": "Modular Biome configuration presets.",
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"@biomejs/biome": "2.3.11",
|
|
6
|
+
"@quentinhsu/biome-config": "0.3.5",
|
|
7
|
+
"@rslib/core": "0.19.1",
|
|
8
|
+
"@types/node": "^25.0.3",
|
|
9
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
10
|
+
"nodemon": "3.1.11",
|
|
11
|
+
"picocolors": "^1.1.1",
|
|
12
|
+
"tsx": "4.21.0",
|
|
13
|
+
"typescript": "5.9.3"
|
|
14
|
+
},
|
|
16
15
|
"exports": {
|
|
17
16
|
".": "./dist/index.jsonc",
|
|
18
|
-
"./react": "./dist/react.jsonc",
|
|
19
17
|
"./next": "./dist/next.jsonc",
|
|
20
|
-
"./
|
|
21
|
-
"./
|
|
22
|
-
|
|
23
|
-
"scripts": {
|
|
24
|
-
"generate:types": "tsx scripts/generate-biome-types.ts",
|
|
25
|
-
"prebuild": "pnpm run generate:types",
|
|
26
|
-
"build": "rslib build && node dist/build.mjs",
|
|
27
|
-
"dev": "nodemon --exec tsx scripts/build-presets.ts",
|
|
28
|
-
"lint": "npx biome check ."
|
|
18
|
+
"./nuxt": "./dist/nuxt.jsonc",
|
|
19
|
+
"./react": "./dist/react.jsonc",
|
|
20
|
+
"./vue": "./dist/vue.jsonc"
|
|
29
21
|
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
30
25
|
"keywords": [
|
|
31
26
|
"biome",
|
|
32
27
|
"config",
|
|
33
28
|
"lint",
|
|
34
29
|
"formatter"
|
|
35
30
|
],
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"name": "@quentinhsu/biome-config",
|
|
36
33
|
"publishConfig": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
34
|
+
"access": "public",
|
|
35
|
+
"provenance": true
|
|
39
36
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/QuentinHsu/biome-config.git"
|
|
40
|
+
},
|
|
41
|
+
"type": "module",
|
|
42
|
+
"version": "0.4.0",
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "rslib build && node dist/build.mjs",
|
|
45
|
+
"dev": "nodemon --exec tsx scripts/build-presets.ts",
|
|
46
|
+
"generate:types": "tsx scripts/generate-biome-types.ts",
|
|
47
|
+
"lint": "npx biome check .",
|
|
48
|
+
"lint:fix": "biome format --write .",
|
|
49
|
+
"postinstall": "pnpm run generate:types",
|
|
50
|
+
"prebuild": "pnpm run generate:types",
|
|
51
|
+
"release:tag": "tsx scripts/tag-release.ts",
|
|
52
|
+
"validate:config": "tsx scripts/validate-config-properties.ts"
|
|
49
53
|
}
|
|
50
|
-
}
|
|
54
|
+
}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import type { FixKind, RulePlainConfiguration } from './schema.ts';
|
|
2
|
-
import type { Kind, Regex, Scope } from './no-non-null-assertion-options.ts';
|
|
3
|
-
import type { RuleWithNoEmptySourceOptions, RuleWithNoFloatingPromisesOptions, RuleWithNoImportCyclesOptions, RuleWithNoIncrementDecrementOptions, RuleWithNoJsxLiteralsOptions, RuleWithNoMisusedPromisesOptions, RuleWithNoNextAsyncClientComponentOptions, RuleWithNoReactForwardRefOptions, RuleWithNoShadowOptions, RuleWithNoUnnecessaryConditionsOptions, RuleWithNoUnresolvedImportsOptions, RuleWithNoUnusedExpressionsOptions, RuleWithNoUselessCatchBindingOptions, RuleWithNoUselessUndefinedOptions, RuleWithNoVueDataObjectDeclarationOptions, RuleWithNoVueDuplicateKeysOptions, RuleWithNoVueReservedKeysOptions, RuleWithNoVueReservedPropsOptions } from './rule-with-no-implicit-coercions-options.ts';
|
|
4
|
-
import type { CustomRestrictedType, FilenameCases, Modifiers, NoParameterAssignOptions, RuleWithNoAccumulatingSpreadOptions, RuleWithNoAlertOptions, RuleWithNoApproximativeNumericConstantOptions, RuleWithNoArrayIndexKeyOptions, RuleWithNoAwaitInLoopsOptions, RuleWithNoBarrelFileOptions, RuleWithNoBlankTargetOptions, RuleWithNoCommonJsOptions, RuleWithNoDangerouslySetInnerHtmlOptions, RuleWithNoDangerouslySetInnerHtmlWithChildrenOptions, RuleWithNoDefaultExportOptions, RuleWithNoDeleteOptions, RuleWithNoDescendingSpecificityOptions, RuleWithNoDoneCallbackOptions, RuleWithNoDynamicNamespaceImportAccessOptions, RuleWithNoEnumOptions, RuleWithNoExportedImportsOptions, RuleWithNoGlobalEvalOptions, RuleWithNoHeadElementOptions, RuleWithNoImgElementOptions, RuleWithNoImplicitBooleanOptions, RuleWithNoInferrableTypesOptions, RuleWithNoMagicNumbersOptions, RuleWithNoNamespaceImportOptions, RuleWithNoNamespaceOptions, RuleWithNoNegationElseOptions, RuleWithNoNestedTernaryOptions, RuleWithNoNonNullAssertionOptions, RuleWithNoParameterPropertiesOptions, RuleWithNoProcessEnvOptions, RuleWithNoReExportAllOptions, RuleWithNoRestrictedGlobalsOptions, RuleWithNoSecretsOptions, RuleWithNoShoutyConstantsOptions, RuleWithNoSubstrOptions, RuleWithNoUnusedTemplateLiteralOptions, RuleWithNoUnwantedPolyfillioOptions, RuleWithNoUselessElseOptions, RuleWithNoValueAtRuleOptions, RuleWithNoYodaExpressionOptions, RuleWithUseArrayLiteralsOptions, RuleWithUseAsConstAssertionOptions, RuleWithUseAtIndexOptions, RuleWithUseBlockStatementsOptions, RuleWithUseCollapsedElseIfOptions, RuleWithUseCollapsedIfOptions, RuleWithUseComponentExportOnlyModulesOptions, RuleWithUseConsistentBuiltinInstantiationOptions, RuleWithUseConsistentCurlyBracesOptions, RuleWithUseConstOptions, RuleWithUseDefaultParameterLastOptions, RuleWithUseDefaultSwitchClauseOptions, RuleWithUseDeprecatedDateOptions, RuleWithUseDeprecatedReasonOptions, RuleWithUseEnumInitializersOptions, RuleWithUseExhaustiveSwitchCasesOptions, RuleWithUseExplicitLengthCheckOptions, RuleWithUseExplicitTypeOptions, RuleWithUseExponentiationOperatorOptions, RuleWithUseExportTypeOptions, RuleWithUseExportsLastOptions, RuleWithUseForOfOptions, RuleWithUseFragmentSyntaxOptions, RuleWithUseGoogleFontPreconnectOptions, RuleWithUseGraphqlNamingConventionOptions, RuleWithUseGroupedAccessorPairsOptions, RuleWithUseLiteralEnumMembersOptions, RuleWithUseMaxParamsOptions, RuleWithUseNodeAssertStrictOptions, RuleWithUseNodejsImportProtocolOptions, RuleWithUseNumberNamespaceOptions, RuleWithUseNumericSeparatorsOptions, RuleWithUseObjectSpreadOptions, RuleWithUseQwikMethodUsageOptions, RuleWithUseQwikValidLexicalScopeOptions, RuleWithUseReactFunctionComponentsOptions, RuleWithUseReadonlyClassPropertiesOptions, RuleWithUseSelfClosingElementsOptions, RuleWithUseShorthandAssignOptions, RuleWithUseShorthandFunctionTypeOptions, RuleWithUseSingleVarDeclaratorOptions, RuleWithUseSolidForComponentOptions, RuleWithUseSortedClassesOptions, RuleWithUseSymbolDescriptionOptions, RuleWithUseTemplateOptions, RuleWithUseThrowNewErrorOptions, RuleWithUseThrowOnlyErrorOptions, RuleWithUseTopLevelRegexOptions, RuleWithUseTrimStartEndOptions, RuleWithUseUnifiedTypeSignaturesOptions, RuleWithUseVueDefineMacrosOrderOptions, RuleWithUseVueMultiWordComponentNamesOptions, UseConsistentArrayTypeOptions, UseConsistentArrowReturnOptions, UseConsistentMemberAccessibilityOptions, UseConsistentObjectDefinitionsOptions, UseConsistentTypeDefinitionsOptions, UseImportTypeOptions } from './use-consistent-arrow-return-options.ts';
|
|
5
|
-
export type NoEmptySourceConfiguration = RulePlainConfiguration | RuleWithNoEmptySourceOptions;
|
|
6
|
-
export type NoFloatingPromisesConfiguration = RulePlainConfiguration | RuleWithNoFloatingPromisesOptions;
|
|
7
|
-
export type NoImportCyclesConfiguration = RulePlainConfiguration | RuleWithNoImportCyclesOptions;
|
|
8
|
-
export type NoIncrementDecrementConfiguration = RulePlainConfiguration | RuleWithNoIncrementDecrementOptions;
|
|
9
|
-
export type NoJsxLiteralsConfiguration = RulePlainConfiguration | RuleWithNoJsxLiteralsOptions;
|
|
10
|
-
export type NoMisusedPromisesConfiguration = RulePlainConfiguration | RuleWithNoMisusedPromisesOptions;
|
|
11
|
-
export type NoNextAsyncClientComponentConfiguration = RulePlainConfiguration | RuleWithNoNextAsyncClientComponentOptions;
|
|
12
|
-
export type NoReactForwardRefConfiguration = RulePlainConfiguration | RuleWithNoReactForwardRefOptions;
|
|
13
|
-
export type NoShadowConfiguration = RulePlainConfiguration | RuleWithNoShadowOptions;
|
|
14
|
-
export type NoUnnecessaryConditionsConfiguration = RulePlainConfiguration | RuleWithNoUnnecessaryConditionsOptions;
|
|
15
|
-
export type NoUnresolvedImportsConfiguration = RulePlainConfiguration | RuleWithNoUnresolvedImportsOptions;
|
|
16
|
-
export type NoUnusedExpressionsConfiguration = RulePlainConfiguration | RuleWithNoUnusedExpressionsOptions;
|
|
17
|
-
export type NoUselessCatchBindingConfiguration = RulePlainConfiguration | RuleWithNoUselessCatchBindingOptions;
|
|
18
|
-
export type NoUselessUndefinedConfiguration = RulePlainConfiguration | RuleWithNoUselessUndefinedOptions;
|
|
19
|
-
export type NoVueDataObjectDeclarationConfiguration = RulePlainConfiguration | RuleWithNoVueDataObjectDeclarationOptions;
|
|
20
|
-
export type NoVueDuplicateKeysConfiguration = RulePlainConfiguration | RuleWithNoVueDuplicateKeysOptions;
|
|
21
|
-
export type NoVueReservedKeysConfiguration = RulePlainConfiguration | RuleWithNoVueReservedKeysOptions;
|
|
22
|
-
export type NoVueReservedPropsConfiguration = RulePlainConfiguration | RuleWithNoVueReservedPropsOptions;
|
|
23
|
-
export interface RuleWithUseConsistentArrowReturnOptions {
|
|
24
|
-
/**
|
|
25
|
-
* The kind of the code actions emitted by the rule
|
|
26
|
-
*/
|
|
27
|
-
fix?: FixKind | null;
|
|
28
|
-
/**
|
|
29
|
-
* The severity of the emitted diagnostics by the rule
|
|
30
|
-
*/
|
|
31
|
-
level: RulePlainConfiguration;
|
|
32
|
-
/**
|
|
33
|
-
* Rule's options
|
|
34
|
-
*/
|
|
35
|
-
options: UseConsistentArrowReturnOptions;
|
|
36
|
-
}
|
|
37
|
-
export type UseDeprecatedDateConfiguration = RulePlainConfiguration | RuleWithUseDeprecatedDateOptions;
|
|
38
|
-
export type UseExhaustiveSwitchCasesConfiguration = RulePlainConfiguration | RuleWithUseExhaustiveSwitchCasesOptions;
|
|
39
|
-
export type UseExplicitTypeConfiguration = RulePlainConfiguration | RuleWithUseExplicitTypeOptions;
|
|
40
|
-
export type UseMaxParamsConfiguration = RulePlainConfiguration | RuleWithUseMaxParamsOptions;
|
|
41
|
-
export type UseQwikMethodUsageConfiguration = RulePlainConfiguration | RuleWithUseQwikMethodUsageOptions;
|
|
42
|
-
export type UseQwikValidLexicalScopeConfiguration = RulePlainConfiguration | RuleWithUseQwikValidLexicalScopeOptions;
|
|
43
|
-
export type UseSortedClassesConfiguration = RulePlainConfiguration | RuleWithUseSortedClassesOptions;
|
|
44
|
-
export type UseVueDefineMacrosOrderConfiguration = RulePlainConfiguration | RuleWithUseVueDefineMacrosOrderOptions;
|
|
45
|
-
export type UseVueMultiWordComponentNamesConfiguration = RulePlainConfiguration | RuleWithUseVueMultiWordComponentNamesOptions;
|
|
46
|
-
export type NoAccumulatingSpreadConfiguration = RulePlainConfiguration | RuleWithNoAccumulatingSpreadOptions;
|
|
47
|
-
export type NoAwaitInLoopsConfiguration = RulePlainConfiguration | RuleWithNoAwaitInLoopsOptions;
|
|
48
|
-
export type NoBarrelFileConfiguration = RulePlainConfiguration | RuleWithNoBarrelFileOptions;
|
|
49
|
-
export type NoDeleteConfiguration = RulePlainConfiguration | RuleWithNoDeleteOptions;
|
|
50
|
-
export type NoDynamicNamespaceImportAccessConfiguration = RulePlainConfiguration | RuleWithNoDynamicNamespaceImportAccessOptions;
|
|
51
|
-
export type NoImgElementConfiguration = RulePlainConfiguration | RuleWithNoImgElementOptions;
|
|
52
|
-
export type NoNamespaceImportConfiguration = RulePlainConfiguration | RuleWithNoNamespaceImportOptions;
|
|
53
|
-
export type NoReExportAllConfiguration = RulePlainConfiguration | RuleWithNoReExportAllOptions;
|
|
54
|
-
export type NoUnwantedPolyfillioConfiguration = RulePlainConfiguration | RuleWithNoUnwantedPolyfillioOptions;
|
|
55
|
-
export type UseGoogleFontPreconnectConfiguration = RulePlainConfiguration | RuleWithUseGoogleFontPreconnectOptions;
|
|
56
|
-
export type UseSolidForComponentConfiguration = RulePlainConfiguration | RuleWithUseSolidForComponentOptions;
|
|
57
|
-
export type UseTopLevelRegexConfiguration = RulePlainConfiguration | RuleWithUseTopLevelRegexOptions;
|
|
58
|
-
export type NoBlankTargetConfiguration = RulePlainConfiguration | RuleWithNoBlankTargetOptions;
|
|
59
|
-
export type NoDangerouslySetInnerHtmlConfiguration = RulePlainConfiguration | RuleWithNoDangerouslySetInnerHtmlOptions;
|
|
60
|
-
export type NoDangerouslySetInnerHtmlWithChildrenConfiguration = RulePlainConfiguration | RuleWithNoDangerouslySetInnerHtmlWithChildrenOptions;
|
|
61
|
-
export type NoGlobalEvalConfiguration = RulePlainConfiguration | RuleWithNoGlobalEvalOptions;
|
|
62
|
-
export type NoSecretsConfiguration = RulePlainConfiguration | RuleWithNoSecretsOptions;
|
|
63
|
-
export type NoCommonJsConfiguration = RulePlainConfiguration | RuleWithNoCommonJsOptions;
|
|
64
|
-
export type NoDefaultExportConfiguration = RulePlainConfiguration | RuleWithNoDefaultExportOptions;
|
|
65
|
-
export type NoDescendingSpecificityConfiguration = RulePlainConfiguration | RuleWithNoDescendingSpecificityOptions;
|
|
66
|
-
export type NoDoneCallbackConfiguration = RulePlainConfiguration | RuleWithNoDoneCallbackOptions;
|
|
67
|
-
export type NoEnumConfiguration = RulePlainConfiguration | RuleWithNoEnumOptions;
|
|
68
|
-
export type NoExportedImportsConfiguration = RulePlainConfiguration | RuleWithNoExportedImportsOptions;
|
|
69
|
-
export type NoHeadElementConfiguration = RulePlainConfiguration | RuleWithNoHeadElementOptions;
|
|
70
|
-
export type NoImplicitBooleanConfiguration = RulePlainConfiguration | RuleWithNoImplicitBooleanOptions;
|
|
71
|
-
export type NoInferrableTypesConfiguration = RulePlainConfiguration | RuleWithNoInferrableTypesOptions;
|
|
72
|
-
export type NoMagicNumbersConfiguration = RulePlainConfiguration | RuleWithNoMagicNumbersOptions;
|
|
73
|
-
export type NoNamespaceConfiguration = RulePlainConfiguration | RuleWithNoNamespaceOptions;
|
|
74
|
-
export type NoNegationElseConfiguration = RulePlainConfiguration | RuleWithNoNegationElseOptions;
|
|
75
|
-
export type NoNestedTernaryConfiguration = RulePlainConfiguration | RuleWithNoNestedTernaryOptions;
|
|
76
|
-
export type NoNonNullAssertionConfiguration = RulePlainConfiguration | RuleWithNoNonNullAssertionOptions;
|
|
77
|
-
export interface RuleWithNoParameterAssignOptions {
|
|
78
|
-
/**
|
|
79
|
-
* The severity of the emitted diagnostics by the rule
|
|
80
|
-
*/
|
|
81
|
-
level: RulePlainConfiguration;
|
|
82
|
-
/**
|
|
83
|
-
* Rule's options
|
|
84
|
-
*/
|
|
85
|
-
options: NoParameterAssignOptions;
|
|
86
|
-
}
|
|
87
|
-
export type NoParameterPropertiesConfiguration = RulePlainConfiguration | RuleWithNoParameterPropertiesOptions;
|
|
88
|
-
export type NoProcessEnvConfiguration = RulePlainConfiguration | RuleWithNoProcessEnvOptions;
|
|
89
|
-
export type NoRestrictedGlobalsConfiguration = RulePlainConfiguration | RuleWithNoRestrictedGlobalsOptions;
|
|
90
|
-
export interface NoRestrictedTypesOptions {
|
|
91
|
-
types?: {
|
|
92
|
-
[k: string]: CustomRestrictedType;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
export type NoShoutyConstantsConfiguration = RulePlainConfiguration | RuleWithNoShoutyConstantsOptions;
|
|
96
|
-
export type NoSubstrConfiguration = RulePlainConfiguration | RuleWithNoSubstrOptions;
|
|
97
|
-
export type NoUnusedTemplateLiteralConfiguration = RulePlainConfiguration | RuleWithNoUnusedTemplateLiteralOptions;
|
|
98
|
-
export type NoUselessElseConfiguration = RulePlainConfiguration | RuleWithNoUselessElseOptions;
|
|
99
|
-
export type NoValueAtRuleConfiguration = RulePlainConfiguration | RuleWithNoValueAtRuleOptions;
|
|
100
|
-
export type NoYodaExpressionConfiguration = RulePlainConfiguration | RuleWithNoYodaExpressionOptions;
|
|
101
|
-
export type UseArrayLiteralsConfiguration = RulePlainConfiguration | RuleWithUseArrayLiteralsOptions;
|
|
102
|
-
export type UseAsConstAssertionConfiguration = RulePlainConfiguration | RuleWithUseAsConstAssertionOptions;
|
|
103
|
-
export type UseAtIndexConfiguration = RulePlainConfiguration | RuleWithUseAtIndexOptions;
|
|
104
|
-
export type UseBlockStatementsConfiguration = RulePlainConfiguration | RuleWithUseBlockStatementsOptions;
|
|
105
|
-
export type UseCollapsedElseIfConfiguration = RulePlainConfiguration | RuleWithUseCollapsedElseIfOptions;
|
|
106
|
-
export type UseCollapsedIfConfiguration = RulePlainConfiguration | RuleWithUseCollapsedIfOptions;
|
|
107
|
-
export type UseComponentExportOnlyModulesConfiguration = RulePlainConfiguration | RuleWithUseComponentExportOnlyModulesOptions;
|
|
108
|
-
export interface RuleWithUseConsistentArrayTypeOptions {
|
|
109
|
-
/**
|
|
110
|
-
* The kind of the code actions emitted by the rule
|
|
111
|
-
*/
|
|
112
|
-
fix?: FixKind | null;
|
|
113
|
-
/**
|
|
114
|
-
* The severity of the emitted diagnostics by the rule
|
|
115
|
-
*/
|
|
116
|
-
level: RulePlainConfiguration;
|
|
117
|
-
/**
|
|
118
|
-
* Rule's options
|
|
119
|
-
*/
|
|
120
|
-
options: UseConsistentArrayTypeOptions;
|
|
121
|
-
}
|
|
122
|
-
export type UseConsistentBuiltinInstantiationConfiguration = RulePlainConfiguration | RuleWithUseConsistentBuiltinInstantiationOptions;
|
|
123
|
-
export type UseConsistentCurlyBracesConfiguration = RulePlainConfiguration | RuleWithUseConsistentCurlyBracesOptions;
|
|
124
|
-
export interface RuleWithUseConsistentMemberAccessibilityOptions {
|
|
125
|
-
/**
|
|
126
|
-
* The severity of the emitted diagnostics by the rule
|
|
127
|
-
*/
|
|
128
|
-
level: RulePlainConfiguration;
|
|
129
|
-
/**
|
|
130
|
-
* Rule's options
|
|
131
|
-
*/
|
|
132
|
-
options: UseConsistentMemberAccessibilityOptions;
|
|
133
|
-
}
|
|
134
|
-
export interface RuleWithUseConsistentObjectDefinitionsOptions {
|
|
135
|
-
/**
|
|
136
|
-
* The kind of the code actions emitted by the rule
|
|
137
|
-
*/
|
|
138
|
-
fix?: FixKind | null;
|
|
139
|
-
/**
|
|
140
|
-
* The severity of the emitted diagnostics by the rule
|
|
141
|
-
*/
|
|
142
|
-
level: RulePlainConfiguration;
|
|
143
|
-
/**
|
|
144
|
-
* Rule's options
|
|
145
|
-
*/
|
|
146
|
-
options: UseConsistentObjectDefinitionsOptions;
|
|
147
|
-
}
|
|
148
|
-
export interface RuleWithUseConsistentTypeDefinitionsOptions {
|
|
149
|
-
/**
|
|
150
|
-
* The kind of the code actions emitted by the rule
|
|
151
|
-
*/
|
|
152
|
-
fix?: FixKind | null;
|
|
153
|
-
/**
|
|
154
|
-
* The severity of the emitted diagnostics by the rule
|
|
155
|
-
*/
|
|
156
|
-
level: RulePlainConfiguration;
|
|
157
|
-
/**
|
|
158
|
-
* Rule's options
|
|
159
|
-
*/
|
|
160
|
-
options: UseConsistentTypeDefinitionsOptions;
|
|
161
|
-
}
|
|
162
|
-
export type UseConstConfiguration = RulePlainConfiguration | RuleWithUseConstOptions;
|
|
163
|
-
export type UseDefaultParameterLastConfiguration = RulePlainConfiguration | RuleWithUseDefaultParameterLastOptions;
|
|
164
|
-
export type UseDefaultSwitchClauseConfiguration = RulePlainConfiguration | RuleWithUseDefaultSwitchClauseOptions;
|
|
165
|
-
export type UseDeprecatedReasonConfiguration = RulePlainConfiguration | RuleWithUseDeprecatedReasonOptions;
|
|
166
|
-
export type UseEnumInitializersConfiguration = RulePlainConfiguration | RuleWithUseEnumInitializersOptions;
|
|
167
|
-
export type UseExplicitLengthCheckConfiguration = RulePlainConfiguration | RuleWithUseExplicitLengthCheckOptions;
|
|
168
|
-
export type UseExponentiationOperatorConfiguration = RulePlainConfiguration | RuleWithUseExponentiationOperatorOptions;
|
|
169
|
-
export type UseExportTypeConfiguration = RulePlainConfiguration | RuleWithUseExportTypeOptions;
|
|
170
|
-
export type UseExportsLastConfiguration = RulePlainConfiguration | RuleWithUseExportsLastOptions;
|
|
171
|
-
export interface UseFilenamingConventionOptions {
|
|
172
|
-
/**
|
|
173
|
-
* Allowed cases for file names.
|
|
174
|
-
*/
|
|
175
|
-
filenameCases?: FilenameCases;
|
|
176
|
-
/**
|
|
177
|
-
* Regular expression to enforce
|
|
178
|
-
*/
|
|
179
|
-
match?: Regex | null;
|
|
180
|
-
/**
|
|
181
|
-
* If `false`, then non-ASCII characters are allowed.
|
|
182
|
-
*/
|
|
183
|
-
requireAscii?: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
|
|
186
|
-
*/
|
|
187
|
-
strictCase?: boolean;
|
|
188
|
-
}
|
|
189
|
-
export type UseForOfConfiguration = RulePlainConfiguration | RuleWithUseForOfOptions;
|
|
190
|
-
export type UseFragmentSyntaxConfiguration = RulePlainConfiguration | RuleWithUseFragmentSyntaxOptions;
|
|
191
|
-
export type UseGraphqlNamingConventionConfiguration = RulePlainConfiguration | RuleWithUseGraphqlNamingConventionOptions;
|
|
192
|
-
export type UseGroupedAccessorPairsConfiguration = RulePlainConfiguration | RuleWithUseGroupedAccessorPairsOptions;
|
|
193
|
-
export interface RuleWithUseImportTypeOptions {
|
|
194
|
-
/**
|
|
195
|
-
* The kind of the code actions emitted by the rule
|
|
196
|
-
*/
|
|
197
|
-
fix?: FixKind | null;
|
|
198
|
-
/**
|
|
199
|
-
* The severity of the emitted diagnostics by the rule
|
|
200
|
-
*/
|
|
201
|
-
level: RulePlainConfiguration;
|
|
202
|
-
/**
|
|
203
|
-
* Rule's options
|
|
204
|
-
*/
|
|
205
|
-
options: UseImportTypeOptions;
|
|
206
|
-
}
|
|
207
|
-
export type UseLiteralEnumMembersConfiguration = RulePlainConfiguration | RuleWithUseLiteralEnumMembersOptions;
|
|
208
|
-
export interface Selector {
|
|
209
|
-
/**
|
|
210
|
-
* Declaration kind
|
|
211
|
-
*/
|
|
212
|
-
kind?: Kind;
|
|
213
|
-
/**
|
|
214
|
-
* Modifiers used on the declaration
|
|
215
|
-
*/
|
|
216
|
-
modifiers?: Modifiers;
|
|
217
|
-
/**
|
|
218
|
-
* Scope of the declaration
|
|
219
|
-
*/
|
|
220
|
-
scope?: Scope;
|
|
221
|
-
}
|
|
222
|
-
export type UseNodeAssertStrictConfiguration = RulePlainConfiguration | RuleWithUseNodeAssertStrictOptions;
|
|
223
|
-
export type UseNodejsImportProtocolConfiguration = RulePlainConfiguration | RuleWithUseNodejsImportProtocolOptions;
|
|
224
|
-
export type UseNumberNamespaceConfiguration = RulePlainConfiguration | RuleWithUseNumberNamespaceOptions;
|
|
225
|
-
export type UseNumericSeparatorsConfiguration = RulePlainConfiguration | RuleWithUseNumericSeparatorsOptions;
|
|
226
|
-
export type UseObjectSpreadConfiguration = RulePlainConfiguration | RuleWithUseObjectSpreadOptions;
|
|
227
|
-
export type UseReactFunctionComponentsConfiguration = RulePlainConfiguration | RuleWithUseReactFunctionComponentsOptions;
|
|
228
|
-
export type UseReadonlyClassPropertiesConfiguration = RulePlainConfiguration | RuleWithUseReadonlyClassPropertiesOptions;
|
|
229
|
-
export type UseSelfClosingElementsConfiguration = RulePlainConfiguration | RuleWithUseSelfClosingElementsOptions;
|
|
230
|
-
export type UseShorthandAssignConfiguration = RulePlainConfiguration | RuleWithUseShorthandAssignOptions;
|
|
231
|
-
export type UseShorthandFunctionTypeConfiguration = RulePlainConfiguration | RuleWithUseShorthandFunctionTypeOptions;
|
|
232
|
-
export type UseSingleVarDeclaratorConfiguration = RulePlainConfiguration | RuleWithUseSingleVarDeclaratorOptions;
|
|
233
|
-
export type UseSymbolDescriptionConfiguration = RulePlainConfiguration | RuleWithUseSymbolDescriptionOptions;
|
|
234
|
-
export type UseTemplateConfiguration = RulePlainConfiguration | RuleWithUseTemplateOptions;
|
|
235
|
-
export type UseThrowNewErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowNewErrorOptions;
|
|
236
|
-
export type UseThrowOnlyErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowOnlyErrorOptions;
|
|
237
|
-
export type UseTrimStartEndConfiguration = RulePlainConfiguration | RuleWithUseTrimStartEndOptions;
|
|
238
|
-
export type UseUnifiedTypeSignaturesConfiguration = RulePlainConfiguration | RuleWithUseUnifiedTypeSignaturesOptions;
|
|
239
|
-
export type NoAlertConfiguration = RulePlainConfiguration | RuleWithNoAlertOptions;
|
|
240
|
-
export type NoApproximativeNumericConstantConfiguration = RulePlainConfiguration | RuleWithNoApproximativeNumericConstantOptions;
|
|
241
|
-
export type NoArrayIndexKeyConfiguration = RulePlainConfiguration | RuleWithNoArrayIndexKeyOptions;
|