vize 0.743.0 → 0.745.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/{config-BAZt_CRq.mjs → config-CtyVnTG0.mjs} +2 -2
- package/dist/config-CtyVnTG0.mjs.map +1 -0
- package/dist/{config-Dug99os2.d.mts → config-V1_fhsm2.d.mts} +30 -2
- package/dist/config-V1_fhsm2.d.mts.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/generated/content-mapper-types.d.ts +8 -5
- package/package.json +3 -2
- package/pkl/LinterConfig.pkl +30 -0
- package/pkl/jsonschema/LintRuleOptionsSchemaDefinitions.pkl +60 -0
- package/pkl/vize.pkl +30 -0
- package/schemas/vize.config.schema.json +129 -0
- package/src/types/generated.ts +30 -0
- package/src/types/rules.ts +5 -0
- package/virtual-ts-globals.d.ts +8 -8
- package/virtual-ts-listeners.d.ts +81 -0
- package/virtual-ts-refs.d.ts +40 -0
- package/virtual-ts.d.cts +23 -29
- package/virtual-ts.d.mts +23 -29
- package/virtual-ts.d.ts +23 -29
- package/dist/config-BAZt_CRq.mjs.map +0 -1
- package/dist/config-Dug99os2.d.mts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-V1_fhsm2.d.mts","names":["mode","command","isSsrBuild","isPreview","filePath","typeChecker","jsxTypecheck","T","vue","source","base","own","ConfigEnv","env","configDir","Promise","exported"],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../../../crates/vize_carton/src/config/loader/vite-runtime.d.mts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA,GAAa,WAAW,CAAC,YAAA;AAAA,KAEzB,YAAA;AAAA,KAEA,YAAA;;;AAFY;KAOZ,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,QAAA;EAa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sBAAA;;;;cC6BA,iBAAA;;cAaA,4BAAA;ALlCb;AAAA,cKyCa,2BAAA;;;ALzCW;AAExB;iBK6CgB,YAAA,CAAa,MAAA,EAAQ,gBAAA,GAAmB,gBAAgB;;iBAKlD,uBAAA,CACpB,QAAA,WACA,GAAA,GAAM,SAAA,EACN,SAAA,YACC,OAAA,CAAQ,kBAAA;ALtDa;AAKxB;;AALwB,iBK6DF,UAAA,CACpB,IAAA,UACA,OAAA,GAAS,iBAAA,GACR,OAAA,CAAQ,kBAAA;;iBAyHW,mBAAA,CACpB,QAAA,EAAU,gBAAA,EACV,GAAA,GAAM,SAAA,GACL,OAAA,CAAQ,kBAAA;ALlLX;;;AAAA,iBKsSgB,oBAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,SAAe,qBAAA"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-V1_fhsm2.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/config.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-CtyVnTG0.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LibConfig, B as VitePluginConfig, C as LintRulesConfig, D as GlobalTypeDeclaration, E as FormatterConfig, F as MuseaConfig, H as VizeConfigEntry, I as MuseaVrtConfig, L as RuleCategory, M as LinterConfig, N as MuseaA11yConfig, O as GlobalTypesConfig, P as MuseaAutogenConfig, R as RuleSeverity, S as LintRuleName, T as CompilerConfig, U as VueVersion, V as VizeConfig, _ as UserConfigExport, a as loadConfig, b as VueOptions, c as resolveViteConfigExport, d as ConfigEnv, f as LoadConfigOptions, g as UserConfigEntry, h as UserConfig, i as defineConfig, j as LintPreset, k as LanguageServerConfig, l as VITE_CONFIG_FILE_NAMES, m as ResolvedVizeConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as MaybePromise, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LspConfig, v as UserConfigInput, w as CompilerCompatibilityConfig, x as VueOptionsEntry, y as VueConfig, z as TypeCheckerConfig } from "./config-
|
|
1
|
+
import { A as LibConfig, B as VitePluginConfig, C as LintRulesConfig, D as GlobalTypeDeclaration, E as FormatterConfig, F as MuseaConfig, H as VizeConfigEntry, I as MuseaVrtConfig, L as RuleCategory, M as LinterConfig, N as MuseaA11yConfig, O as GlobalTypesConfig, P as MuseaAutogenConfig, R as RuleSeverity, S as LintRuleName, T as CompilerConfig, U as VueVersion, V as VizeConfig, _ as UserConfigExport, a as loadConfig, b as VueOptions, c as resolveViteConfigExport, d as ConfigEnv, f as LoadConfigOptions, g as UserConfigEntry, h as UserConfig, i as defineConfig, j as LintPreset, k as LanguageServerConfig, l as VITE_CONFIG_FILE_NAMES, m as ResolvedVizeConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as MaybePromise, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LspConfig, v as UserConfigInput, w as CompilerCompatibilityConfig, x as VueOptionsEntry, y as VueConfig, z as TypeCheckerConfig } from "./config-V1_fhsm2.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LibConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfig, type UserConfigEntry, type UserConfigExport, type UserConfigInput, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueConfig, type VueOptions, type VueOptionsEntry, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-CtyVnTG0.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
|
@@ -107,11 +107,14 @@ type __WithDefaultsResult<T, D, __BKeys extends keyof T = never> = T extends unk
|
|
|
107
107
|
type __Ref<T> = import("vue").Ref<T>;
|
|
108
108
|
type __ShallowRef<T> = import("vue").ShallowRef<T>;
|
|
109
109
|
|
|
110
|
-
type $KebabCase<S extends string, Acc extends string = ""> =
|
|
111
|
-
|
|
112
|
-
?
|
|
113
|
-
:
|
|
114
|
-
|
|
110
|
+
type $KebabCase<S extends string, Acc extends string = ""> =
|
|
111
|
+
S extends Lowercase<S>
|
|
112
|
+
? `${Acc}${S}`
|
|
113
|
+
: S extends `${infer Head}${infer Tail}`
|
|
114
|
+
? Head extends Lowercase<Head>
|
|
115
|
+
? $KebabCase<Tail, `${Acc}${Head}`>
|
|
116
|
+
: $KebabCase<Tail, `${Acc}-${Lowercase<Head>}`>
|
|
117
|
+
: `${Acc}${S}`;
|
|
115
118
|
type $KebabProps<T> = { [K in keyof T & string as $KebabCase<K>]: T[K] };
|
|
116
119
|
type $RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[keyof T];
|
|
117
120
|
type $DomListenerProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.745.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"virtual-ts-listeners.d.ts",
|
|
39
39
|
"virtual-ts-patterns.d.ts",
|
|
40
40
|
"virtual-ts-slots.d.ts",
|
|
41
|
+
"virtual-ts-refs.d.ts",
|
|
41
42
|
"virtual-ts-emits.d.ts",
|
|
42
43
|
"virtual-ts.d.ts",
|
|
43
44
|
"virtual-ts.d.mts",
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
"access": "public"
|
|
93
94
|
},
|
|
94
95
|
"dependencies": {
|
|
95
|
-
"@vizejs/native": "0.
|
|
96
|
+
"@vizejs/native": "0.745.0",
|
|
96
97
|
"oxc-transform": "0.157.0"
|
|
97
98
|
},
|
|
98
99
|
"devDependencies": {
|
package/pkl/LinterConfig.pkl
CHANGED
|
@@ -213,6 +213,33 @@ class EnforceStyleAttributeOptions {
|
|
|
213
213
|
allow: Listing<"plain" | "scoped" | "module"> = new Listing { "scoped" }
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
class BlockLangBlock {
|
|
217
|
+
lang: (String | Listing<String>)? = null
|
|
218
|
+
allowNoLang: Boolean? = null
|
|
219
|
+
required: Boolean? = null
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
class BlockLangOptions {
|
|
223
|
+
script: BlockLangBlock? = null
|
|
224
|
+
template: BlockLangBlock? = null
|
|
225
|
+
style: BlockLangBlock? = null
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
class MaxLinesObject {
|
|
229
|
+
max: Int? = null
|
|
230
|
+
skipComments: Boolean? = null
|
|
231
|
+
skipBlankLines: Boolean? = null
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
typealias MaxLinesOptions = Int | MaxLinesObject
|
|
235
|
+
|
|
236
|
+
class MaxLinesPerBlockOptions {
|
|
237
|
+
style: Int? = null
|
|
238
|
+
template: Int? = null
|
|
239
|
+
script: Int? = null
|
|
240
|
+
skipBlankLines: Boolean? = null
|
|
241
|
+
}
|
|
242
|
+
|
|
216
243
|
class RestrictedSyntaxSelector {
|
|
217
244
|
/// esquery selector from the supported subset (see the rule options docs).
|
|
218
245
|
selector: String
|
|
@@ -248,6 +275,9 @@ class LintRuleOptions {
|
|
|
248
275
|
`vue/no-bare-strings-in-template`: NoBareStringsInTemplateOptions? = null
|
|
249
276
|
`a11y/anchor-has-content`: AnchorHasContentOptions? = null
|
|
250
277
|
`a11y/label-has-for`: LabelHasForOptions? = null
|
|
278
|
+
`vue/block-lang`: BlockLangOptions? = null
|
|
279
|
+
`max-lines`: MaxLinesOptions? = null
|
|
280
|
+
`vue/max-lines-per-block`: MaxLinesPerBlockOptions? = null
|
|
251
281
|
`vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
|
|
252
282
|
`vue/no-restricted-syntax`: (Listing<RestrictedSyntaxEntry> | NoRestrictedSyntaxOptions)? = null
|
|
253
283
|
`vue/quote-props`: "as-needed"? = null
|
|
@@ -30,6 +30,55 @@ defineMacrosOrderOptionsDef: JsonSchema = new JsonSchema {
|
|
|
30
30
|
additionalProperties = false
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
blockLangNamesDef: JsonSchema = new JsonSchema {
|
|
34
|
+
oneOf = new Listing {
|
|
35
|
+
new JsonSchema { type = "string" }
|
|
36
|
+
new JsonSchema {
|
|
37
|
+
type = "array"
|
|
38
|
+
items = new JsonSchema { type = "string" }
|
|
39
|
+
uniqueItems = true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
blockLangBlockDef: JsonSchema = new JsonSchema {
|
|
45
|
+
type = "object"
|
|
46
|
+
properties {
|
|
47
|
+
["lang"] = blockLangNamesDef
|
|
48
|
+
["allowNoLang"] = new JsonSchema { type = "boolean" }
|
|
49
|
+
["required"] = new JsonSchema { type = "boolean" }
|
|
50
|
+
}
|
|
51
|
+
additionalProperties = false
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
maxLinesObjectDef: JsonSchema = new JsonSchema {
|
|
55
|
+
type = "object"
|
|
56
|
+
properties {
|
|
57
|
+
["max"] = new JsonSchema { type = "integer"; minimum = 0 }
|
|
58
|
+
["skipComments"] = new JsonSchema { type = "boolean" }
|
|
59
|
+
["skipBlankLines"] = new JsonSchema { type = "boolean" }
|
|
60
|
+
}
|
|
61
|
+
additionalProperties = false
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
maxLinesDef: JsonSchema = new JsonSchema {
|
|
65
|
+
oneOf = new Listing {
|
|
66
|
+
new JsonSchema { type = "integer"; minimum = 0 }
|
|
67
|
+
maxLinesObjectDef
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
maxLinesPerBlockDef: JsonSchema = new JsonSchema {
|
|
72
|
+
type = "object"
|
|
73
|
+
properties {
|
|
74
|
+
["style"] = new JsonSchema { type = "integer"; minimum = 1 }
|
|
75
|
+
["template"] = new JsonSchema { type = "integer"; minimum = 1 }
|
|
76
|
+
["script"] = new JsonSchema { type = "integer"; minimum = 1 }
|
|
77
|
+
["skipBlankLines"] = new JsonSchema { type = "boolean" }
|
|
78
|
+
}
|
|
79
|
+
additionalProperties = false
|
|
80
|
+
}
|
|
81
|
+
|
|
33
82
|
lintRuleOptionsDef: JsonSchema = new JsonSchema {
|
|
34
83
|
type = "object"
|
|
35
84
|
properties {
|
|
@@ -122,6 +171,17 @@ lintRuleOptionsDef: JsonSchema = new JsonSchema {
|
|
|
122
171
|
}
|
|
123
172
|
additionalProperties = false
|
|
124
173
|
}
|
|
174
|
+
["vue/block-lang"] = new JsonSchema {
|
|
175
|
+
type = "object"
|
|
176
|
+
properties {
|
|
177
|
+
["script"] = blockLangBlockDef
|
|
178
|
+
["template"] = blockLangBlockDef
|
|
179
|
+
["style"] = blockLangBlockDef
|
|
180
|
+
}
|
|
181
|
+
additionalProperties = false
|
|
182
|
+
}
|
|
183
|
+
["max-lines"] = maxLinesDef
|
|
184
|
+
["vue/max-lines-per-block"] = maxLinesPerBlockDef
|
|
125
185
|
["vue/enforce-style-attribute"] = new JsonSchema {
|
|
126
186
|
type = "object"
|
|
127
187
|
properties {
|
package/pkl/vize.pkl
CHANGED
|
@@ -244,6 +244,33 @@ class NoRestrictedSyntaxOptions {
|
|
|
244
244
|
selectors: Listing<RestrictedSyntaxEntry> = new Listing {}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
class BlockLangBlock {
|
|
248
|
+
lang: (String | Listing<String>)? = null
|
|
249
|
+
allowNoLang: Boolean? = null
|
|
250
|
+
required: Boolean? = null
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
class BlockLangOptions {
|
|
254
|
+
script: BlockLangBlock? = null
|
|
255
|
+
template: BlockLangBlock? = null
|
|
256
|
+
style: BlockLangBlock? = null
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
class MaxLinesObject {
|
|
260
|
+
max: Int? = null
|
|
261
|
+
skipComments: Boolean? = null
|
|
262
|
+
skipBlankLines: Boolean? = null
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
typealias MaxLinesOptions = Int | MaxLinesObject
|
|
266
|
+
|
|
267
|
+
class MaxLinesPerBlockOptions {
|
|
268
|
+
style: Int? = null
|
|
269
|
+
template: Int? = null
|
|
270
|
+
script: Int? = null
|
|
271
|
+
skipBlankLines: Boolean? = null
|
|
272
|
+
}
|
|
273
|
+
|
|
247
274
|
class SortKeysOptions {
|
|
248
275
|
order: "asc" | "desc" = "asc"
|
|
249
276
|
caseSensitive: Boolean = true
|
|
@@ -266,6 +293,9 @@ class LintRuleOptions {
|
|
|
266
293
|
`vue/no-bare-strings-in-template`: NoBareStringsInTemplateOptions? = null
|
|
267
294
|
`a11y/anchor-has-content`: AnchorHasContentOptions? = null
|
|
268
295
|
`a11y/label-has-for`: LabelHasForOptions? = null
|
|
296
|
+
`vue/block-lang`: BlockLangOptions? = null
|
|
297
|
+
`max-lines`: MaxLinesOptions? = null
|
|
298
|
+
`vue/max-lines-per-block`: MaxLinesPerBlockOptions? = null
|
|
269
299
|
`vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
|
|
270
300
|
`vue/no-restricted-syntax`: (Listing<RestrictedSyntaxEntry> | NoRestrictedSyntaxOptions)? = null
|
|
271
301
|
`vue/quote-props`: "as-needed"? = null
|
|
@@ -685,6 +685,135 @@
|
|
|
685
685
|
},
|
|
686
686
|
"additionalProperties": false
|
|
687
687
|
},
|
|
688
|
+
"vue/block-lang": {
|
|
689
|
+
"type": "object",
|
|
690
|
+
"properties": {
|
|
691
|
+
"script": {
|
|
692
|
+
"type": "object",
|
|
693
|
+
"properties": {
|
|
694
|
+
"lang": {
|
|
695
|
+
"oneOf": [
|
|
696
|
+
{
|
|
697
|
+
"type": "string"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"type": "array",
|
|
701
|
+
"items": {
|
|
702
|
+
"type": "string"
|
|
703
|
+
},
|
|
704
|
+
"uniqueItems": true
|
|
705
|
+
}
|
|
706
|
+
]
|
|
707
|
+
},
|
|
708
|
+
"allowNoLang": {
|
|
709
|
+
"type": "boolean"
|
|
710
|
+
},
|
|
711
|
+
"required": {
|
|
712
|
+
"type": "boolean"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"additionalProperties": false
|
|
716
|
+
},
|
|
717
|
+
"template": {
|
|
718
|
+
"type": "object",
|
|
719
|
+
"properties": {
|
|
720
|
+
"lang": {
|
|
721
|
+
"oneOf": [
|
|
722
|
+
{
|
|
723
|
+
"type": "string"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"type": "array",
|
|
727
|
+
"items": {
|
|
728
|
+
"type": "string"
|
|
729
|
+
},
|
|
730
|
+
"uniqueItems": true
|
|
731
|
+
}
|
|
732
|
+
]
|
|
733
|
+
},
|
|
734
|
+
"allowNoLang": {
|
|
735
|
+
"type": "boolean"
|
|
736
|
+
},
|
|
737
|
+
"required": {
|
|
738
|
+
"type": "boolean"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"additionalProperties": false
|
|
742
|
+
},
|
|
743
|
+
"style": {
|
|
744
|
+
"type": "object",
|
|
745
|
+
"properties": {
|
|
746
|
+
"lang": {
|
|
747
|
+
"oneOf": [
|
|
748
|
+
{
|
|
749
|
+
"type": "string"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"type": "array",
|
|
753
|
+
"items": {
|
|
754
|
+
"type": "string"
|
|
755
|
+
},
|
|
756
|
+
"uniqueItems": true
|
|
757
|
+
}
|
|
758
|
+
]
|
|
759
|
+
},
|
|
760
|
+
"allowNoLang": {
|
|
761
|
+
"type": "boolean"
|
|
762
|
+
},
|
|
763
|
+
"required": {
|
|
764
|
+
"type": "boolean"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"additionalProperties": false
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"additionalProperties": false
|
|
771
|
+
},
|
|
772
|
+
"max-lines": {
|
|
773
|
+
"oneOf": [
|
|
774
|
+
{
|
|
775
|
+
"type": "integer",
|
|
776
|
+
"minimum": 0
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"type": "object",
|
|
780
|
+
"properties": {
|
|
781
|
+
"max": {
|
|
782
|
+
"type": "integer",
|
|
783
|
+
"minimum": 0
|
|
784
|
+
},
|
|
785
|
+
"skipComments": {
|
|
786
|
+
"type": "boolean"
|
|
787
|
+
},
|
|
788
|
+
"skipBlankLines": {
|
|
789
|
+
"type": "boolean"
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"additionalProperties": false
|
|
793
|
+
}
|
|
794
|
+
]
|
|
795
|
+
},
|
|
796
|
+
"vue/max-lines-per-block": {
|
|
797
|
+
"type": "object",
|
|
798
|
+
"properties": {
|
|
799
|
+
"style": {
|
|
800
|
+
"type": "integer",
|
|
801
|
+
"minimum": 1
|
|
802
|
+
},
|
|
803
|
+
"template": {
|
|
804
|
+
"type": "integer",
|
|
805
|
+
"minimum": 1
|
|
806
|
+
},
|
|
807
|
+
"script": {
|
|
808
|
+
"type": "integer",
|
|
809
|
+
"minimum": 1
|
|
810
|
+
},
|
|
811
|
+
"skipBlankLines": {
|
|
812
|
+
"type": "boolean"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
"additionalProperties": false
|
|
816
|
+
},
|
|
688
817
|
"vue/enforce-style-attribute": {
|
|
689
818
|
"type": "object",
|
|
690
819
|
"properties": {
|
package/src/types/generated.ts
CHANGED
|
@@ -312,6 +312,36 @@ export interface LintRuleOptions {
|
|
|
312
312
|
"a11y/label-has-for"?: {
|
|
313
313
|
controlComponents?: string[];
|
|
314
314
|
};
|
|
315
|
+
"vue/block-lang"?: {
|
|
316
|
+
script?: {
|
|
317
|
+
lang?: string | string[];
|
|
318
|
+
allowNoLang?: boolean;
|
|
319
|
+
required?: boolean;
|
|
320
|
+
};
|
|
321
|
+
template?: {
|
|
322
|
+
lang?: string | string[];
|
|
323
|
+
allowNoLang?: boolean;
|
|
324
|
+
required?: boolean;
|
|
325
|
+
};
|
|
326
|
+
style?: {
|
|
327
|
+
lang?: string | string[];
|
|
328
|
+
allowNoLang?: boolean;
|
|
329
|
+
required?: boolean;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
"max-lines"?:
|
|
333
|
+
| number
|
|
334
|
+
| {
|
|
335
|
+
max?: number;
|
|
336
|
+
skipComments?: boolean;
|
|
337
|
+
skipBlankLines?: boolean;
|
|
338
|
+
};
|
|
339
|
+
"vue/max-lines-per-block"?: {
|
|
340
|
+
style?: number;
|
|
341
|
+
template?: number;
|
|
342
|
+
script?: number;
|
|
343
|
+
skipBlankLines?: boolean;
|
|
344
|
+
};
|
|
315
345
|
"vue/enforce-style-attribute"?: {
|
|
316
346
|
allow?: ("plain" | "scoped" | "module")[];
|
|
317
347
|
};
|
package/src/types/rules.ts
CHANGED
|
@@ -62,6 +62,7 @@ export const LINT_RULE_NAMES = [
|
|
|
62
62
|
"html/no-duplicate-dt",
|
|
63
63
|
"html/no-empty-palpable-content",
|
|
64
64
|
"html/require-datetime",
|
|
65
|
+
"max-lines",
|
|
65
66
|
"musea/no-empty-variant",
|
|
66
67
|
"musea/prefer-design-tokens",
|
|
67
68
|
"musea/require-component",
|
|
@@ -168,6 +169,7 @@ export const LINT_RULE_NAMES = [
|
|
|
168
169
|
"vue/a11y-img-alt",
|
|
169
170
|
"vue/attribute-hyphenation",
|
|
170
171
|
"vue/attribute-order",
|
|
172
|
+
"vue/block-lang",
|
|
171
173
|
"vue/camelcase",
|
|
172
174
|
"vue/comment-directive",
|
|
173
175
|
"vue/component-definition-name-casing",
|
|
@@ -181,6 +183,7 @@ export const LINT_RULE_NAMES = [
|
|
|
181
183
|
"vue/html-self-closing",
|
|
182
184
|
"vue/jsx-uses-vars",
|
|
183
185
|
"vue/match-component-file-name",
|
|
186
|
+
"vue/max-lines-per-block",
|
|
184
187
|
"vue/max-template-complexity",
|
|
185
188
|
"vue/multi-word-component-names",
|
|
186
189
|
"vue/mustache-interpolation-spacing",
|
|
@@ -273,8 +276,10 @@ export const LINT_RULE_NAMES = [
|
|
|
273
276
|
"vue/quote-props",
|
|
274
277
|
"vue/require-component-is",
|
|
275
278
|
"vue/require-component-registration",
|
|
279
|
+
"vue/require-default-export",
|
|
276
280
|
"vue/require-expose",
|
|
277
281
|
"vue/require-macro-variable-name",
|
|
282
|
+
"vue/require-prop-comment",
|
|
278
283
|
"vue/require-scoped-style",
|
|
279
284
|
"vue/require-toggle-inside-transition",
|
|
280
285
|
"vue/require-v-for-key",
|
package/virtual-ts-globals.d.ts
CHANGED
|
@@ -109,14 +109,14 @@ declare global {
|
|
|
109
109
|
: never;
|
|
110
110
|
type __Ref<T> = import("vue").Ref<T>;
|
|
111
111
|
type __ShallowRef<T> = import("vue").ShallowRef<T>;
|
|
112
|
-
type $KebabCase<
|
|
113
|
-
S extends
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
type $KebabCase<S extends string, Acc extends string = ""> =
|
|
113
|
+
S extends Lowercase<S>
|
|
114
|
+
? `${Acc}${S}`
|
|
115
|
+
: S extends `${infer Head}${infer Tail}`
|
|
116
|
+
? Head extends Lowercase<Head>
|
|
117
|
+
? $KebabCase<Tail, `${Acc}${Head}`>
|
|
118
|
+
: $KebabCase<Tail, `${Acc}-${Lowercase<Head>}`>
|
|
119
|
+
: `${Acc}${S}`;
|
|
120
120
|
type $KebabProps<T> = { [K in keyof T & string as $KebabCase<K>]: T[K] };
|
|
121
121
|
type $RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[keyof T];
|
|
122
122
|
type $DomListenerProps = {
|
|
@@ -170,3 +170,84 @@ export type $ClosedEmit<C, A = C> = [C] extends [never]
|
|
|
170
170
|
: [E]
|
|
171
171
|
: false
|
|
172
172
|
: false;
|
|
173
|
+
// Per-usage listener boxes over `typeof Component`; `NoInfer<C>` keeps them non-distributive.
|
|
174
|
+
export type $UsageLibrary<C> =
|
|
175
|
+
NoInfer<C> extends { __vizeCheck: any } | { readonly __vizeComponentMarker: true }
|
|
176
|
+
? false
|
|
177
|
+
: NoInfer<C> extends (...args: any[]) => infer __R
|
|
178
|
+
? 0 extends 1 & __R
|
|
179
|
+
? false
|
|
180
|
+
: "__ctx" extends keyof __R
|
|
181
|
+
? true
|
|
182
|
+
: false
|
|
183
|
+
: false;
|
|
184
|
+
export type $UsagePropsBox<C> =
|
|
185
|
+
NoInfer<C> extends { new (...args: any[]): { $props: infer __P } }
|
|
186
|
+
? [__P]
|
|
187
|
+
: NoInfer<C> extends (props: infer __P, ...args: any[]) => any
|
|
188
|
+
? [__P]
|
|
189
|
+
: [];
|
|
190
|
+
export type $UsageEmitPropsBox<C> =
|
|
191
|
+
NoInfer<C> extends { __vizeEmitProps?: infer __EP } ? [__EP] : [];
|
|
192
|
+
// A component whose raw fallthrough source admits `{}` has no required fallthrough key: removing owned keys adds none.
|
|
193
|
+
type $FallthroughSourceMember<C> = C extends {
|
|
194
|
+
readonly __vizeHasFallthroughProps: true;
|
|
195
|
+
readonly __vizeFallthroughSource?: infer __S;
|
|
196
|
+
}
|
|
197
|
+
? unknown extends __S
|
|
198
|
+
? false
|
|
199
|
+
: [
|
|
200
|
+
NonNullable<__S> extends infer __N
|
|
201
|
+
? __N extends unknown
|
|
202
|
+
? {} extends __N
|
|
203
|
+
? never
|
|
204
|
+
: __N
|
|
205
|
+
: never
|
|
206
|
+
: never,
|
|
207
|
+
] extends [never]
|
|
208
|
+
? true
|
|
209
|
+
: false
|
|
210
|
+
: false;
|
|
211
|
+
export type $FallthroughSourceAdmitsEmpty<C> = [C] extends [never]
|
|
212
|
+
? false
|
|
213
|
+
: [$FallthroughSourceMember<C>] extends [true]
|
|
214
|
+
? true
|
|
215
|
+
: false;
|
|
216
|
+
// The per-module emit gate input, shared so each component resolves it once per program.
|
|
217
|
+
type $EmitGateNativeInput<C> = C extends new (...args: any[]) => any
|
|
218
|
+
? C extends { readonly __vizeComponentMarker: true }
|
|
219
|
+
? false
|
|
220
|
+
: true
|
|
221
|
+
: false;
|
|
222
|
+
type $EmitGateInputOf<L, C, F, R = F extends (...args: any) => infer T ? T : any, U = R> = [
|
|
223
|
+
L,
|
|
224
|
+
] extends [true]
|
|
225
|
+
? F
|
|
226
|
+
: $ClosedEmit<C> extends [unknown]
|
|
227
|
+
? F
|
|
228
|
+
: true extends (
|
|
229
|
+
0 extends 1 & C
|
|
230
|
+
? false
|
|
231
|
+
: C extends { __vizeResolveEmitProps?: infer X }
|
|
232
|
+
? X extends (...args: any[]) => any
|
|
233
|
+
? true
|
|
234
|
+
: $EmitGateNativeInput<C>
|
|
235
|
+
: C extends { __vizeResolveProps?: infer X }
|
|
236
|
+
? X extends (...args: any[]) => any
|
|
237
|
+
? true
|
|
238
|
+
: $EmitGateNativeInput<C>
|
|
239
|
+
: $EmitGateNativeInput<C>
|
|
240
|
+
)
|
|
241
|
+
? F
|
|
242
|
+
: [R] extends [never]
|
|
243
|
+
? F
|
|
244
|
+
: [
|
|
245
|
+
R extends unknown
|
|
246
|
+
? (<G>() => G extends R ? 1 : 2) extends <G>() => G extends U ? 1 : 2
|
|
247
|
+
? true
|
|
248
|
+
: false
|
|
249
|
+
: false,
|
|
250
|
+
] extends [true]
|
|
251
|
+
? (props: any) => R
|
|
252
|
+
: F;
|
|
253
|
+
export type $EmitGateInput<L, C, F> = $EmitGateInputOf<L, C, F>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Generated from the canonical template-ref registry helpers. Do not edit.
|
|
2
|
+
// Template-ref registry targets, shared so each instantiation is cached once per program.
|
|
3
|
+
export type $DomElement<_Tag extends string, _Svg extends boolean = false> = _Svg extends true
|
|
4
|
+
? _Tag extends keyof SVGElementTagNameMap
|
|
5
|
+
? SVGElementTagNameMap[_Tag]
|
|
6
|
+
: Element
|
|
7
|
+
: _Tag extends keyof HTMLElementTagNameMap
|
|
8
|
+
? HTMLElementTagNameMap[_Tag]
|
|
9
|
+
: Element;
|
|
10
|
+
export type $TemplateComponentRef<_C> = _C extends string
|
|
11
|
+
? _C extends keyof HTMLElementTagNameMap
|
|
12
|
+
? HTMLElementTagNameMap[_C]
|
|
13
|
+
: _C extends keyof SVGElementTagNameMap
|
|
14
|
+
? SVGElementTagNameMap[_C]
|
|
15
|
+
: Element
|
|
16
|
+
: _C extends abstract new (...args: any[]) => infer _I
|
|
17
|
+
? _I
|
|
18
|
+
: _C extends (props: any, ctx: any, expose: (exposed: infer _E) => any, ...args: any[]) => any
|
|
19
|
+
? NonNullable<_E>
|
|
20
|
+
: any;
|
|
21
|
+
export type $RefInstanceFactory<_C> = 0 extends 1 & _C
|
|
22
|
+
? (component: _C) => (props: any) => undefined
|
|
23
|
+
: _C extends { __vizeResolveRef?: infer _F }
|
|
24
|
+
? _F extends (...args: any[]) => any
|
|
25
|
+
? (component: _C) => _F
|
|
26
|
+
: (component: _C) => (props: any) => undefined
|
|
27
|
+
: _C extends (props: any, ctx?: any, expose?: any, ...args: any[]) => any
|
|
28
|
+
? (component: _C) => _C
|
|
29
|
+
: (component: _C) => (props: any) => undefined;
|
|
30
|
+
export type $TemplateRefInstance<_T, _K extends keyof _T, _C> = 0 extends 1 & _C
|
|
31
|
+
? $TemplateComponentRef<_C>
|
|
32
|
+
: _C extends (props: any, ctx?: any, expose?: any, ...args: any[]) => any
|
|
33
|
+
? _T[_K] extends () => infer _R
|
|
34
|
+
? _R extends { __ctx?: infer _X }
|
|
35
|
+
? NonNullable<_X> extends { expose: (exposed: infer _E) => any }
|
|
36
|
+
? NonNullable<_E>
|
|
37
|
+
: $TemplateComponentRef<_C>
|
|
38
|
+
: $TemplateComponentRef<_C>
|
|
39
|
+
: $TemplateComponentRef<_C>
|
|
40
|
+
: $TemplateComponentRef<_C>;
|