vize 0.90.0 → 0.91.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-CTXni-Py.d.mts → config-XMCb6V8W.d.mts} +224 -215
- package/dist/config-XMCb6V8W.d.mts.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +80 -50
- package/dist/config.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/package.json +10 -9
- package/pkl/CompilerConfig.pkl +37 -0
- package/pkl/FormatterConfig.pkl +67 -0
- package/pkl/GlobalTypesConfig.pkl +15 -0
- package/pkl/LanguageServerConfig.pkl +70 -0
- package/pkl/LinterConfig.pkl +17 -0
- package/pkl/LspConfig.pkl +6 -0
- package/pkl/MuseaConfig.pkl +38 -0
- package/pkl/PklProject +16 -0
- package/pkl/PklProject.deps.json +19 -0
- package/pkl/TypeCheckerConfig.pkl +43 -0
- package/pkl/VitePluginConfig.pkl +20 -0
- package/pkl/VizeConfig.pkl +55 -0
- package/pkl/jsonschema/generate.pkl +622 -0
- package/pkl/vize.pkl +12 -1
- package/schemas/vize.config.schema.json +375 -126
- package/src/config.ts +120 -51
- package/src/index.ts +1 -0
- package/src/types/generated.ts +472 -0
- package/src/types/index.ts +19 -10
- package/src/types/rules.ts +1 -1
- package/src/types/{loader.ts → runtime.ts} +15 -20
- package/dist/config-CTXni-Py.d.mts.map +0 -1
- package/src/types/compiler.ts +0 -121
- package/src/types/core.ts +0 -83
- package/src/types/musea.ts +0 -108
- package/src/types/tools.ts +0 -266
package/pkl/vize.pkl
CHANGED
|
@@ -11,7 +11,7 @@ module vize.Config
|
|
|
11
11
|
typealias CompilerMode = "module" | "function"
|
|
12
12
|
typealias ScriptExt = "ts" | "js"
|
|
13
13
|
typealias RuleSeverity = "off" | "warn" | "error"
|
|
14
|
-
typealias LintPreset = "happy-path" | "opinionated" | "essential" | "nuxt"
|
|
14
|
+
typealias LintPreset = "happy-path" | "opinionated" | "essential" | "incremental" | "nuxt"
|
|
15
15
|
typealias TrailingComma = "all" | "none" | "es5"
|
|
16
16
|
typealias FilterPattern = String | Listing<String>
|
|
17
17
|
typealias GlobalTypeValue = String | GlobalTypeDeclaration
|
|
@@ -52,8 +52,15 @@ class TypeCheckerConfig {
|
|
|
52
52
|
checkProps: Boolean? = null
|
|
53
53
|
checkEmits: Boolean? = null
|
|
54
54
|
checkTemplateBindings: Boolean? = null
|
|
55
|
+
checkReactivity: Boolean? = null
|
|
56
|
+
checkSetupContext: Boolean? = null
|
|
57
|
+
checkInvalidExports: Boolean? = null
|
|
58
|
+
checkFallthroughAttrs: Boolean? = null
|
|
55
59
|
tsconfig: String? = null
|
|
60
|
+
tsgoPath: String? = null
|
|
56
61
|
corsaPath: String? = null
|
|
62
|
+
globalsFile: String? = null
|
|
63
|
+
servers: Int? = null
|
|
57
64
|
}
|
|
58
65
|
|
|
59
66
|
class FormatterConfig {
|
|
@@ -88,6 +95,8 @@ class LspConfig {
|
|
|
88
95
|
inlayHints: Boolean? = null
|
|
89
96
|
fileRename: Boolean? = null
|
|
90
97
|
corsa: Boolean? = null
|
|
98
|
+
/// Deprecated: use `corsa`.
|
|
99
|
+
tsgo: Boolean? = null
|
|
91
100
|
}
|
|
92
101
|
|
|
93
102
|
class MuseaViewport {
|
|
@@ -133,6 +142,8 @@ vite: VitePluginConfig?
|
|
|
133
142
|
linter: LinterConfig?
|
|
134
143
|
typeChecker: TypeCheckerConfig?
|
|
135
144
|
formatter: FormatterConfig?
|
|
145
|
+
languageServer: LspConfig?
|
|
146
|
+
/// Deprecated: use `languageServer`.
|
|
136
147
|
lsp: LspConfig?
|
|
137
148
|
musea: MuseaConfig?
|
|
138
149
|
globalTypes: Mapping<String, GlobalTypeValue>? = null
|