vize 0.225.0 → 0.228.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vize",
3
- "version": "0.225.0",
3
+ "version": "0.228.0",
4
4
  "description": "Vize - High-performance Vue.js toolchain in Rust",
5
5
  "keywords": [
6
6
  "cli",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@vizejs/native": "0.225.0",
53
+ "@vizejs/native": "0.228.0",
54
54
  "oxc-transform": "0.130.0"
55
55
  },
56
56
  "devDependencies": {
@@ -14,6 +14,9 @@ class LinterConfig {
14
14
  /// Built-in lint preset.
15
15
  preset: LintPreset = "ecosystem"
16
16
 
17
+ /// Enable native type-aware lint rules from the active lint configuration.
18
+ typeAware: Boolean = false
19
+
17
20
  /// Rules to enable/disable.
18
21
  rules: Mapping<String, RuleSeverity> = new Mapping {}
19
22
 
@@ -2,19 +2,15 @@
2
2
  ///
3
3
  /// Usage: pkl eval -f json pkl/jsonschema/generate.pkl
4
4
  module vize.jsonschema.generate
5
-
6
5
  import "@json_schema/JsonSchema.pkl"
7
-
8
6
  local ruleSeverityEnum: JsonSchema = new JsonSchema {
9
7
  type = "string"
10
8
  enum = new Listing { "off"; "warn"; "error" }
11
9
  }
12
-
13
10
  local lintPresetEnum: JsonSchema = new JsonSchema {
14
11
  type = "string"
15
12
  enum = new Listing { "happy-path"; "opinionated"; "essential"; "incremental"; "ecosystem"; "nuxt" }
16
13
  }
17
-
18
14
  local stringListDef: JsonSchema = new JsonSchema {
19
15
  type = "array"
20
16
  items = new JsonSchema { type = "string" }
@@ -156,6 +152,10 @@ local linterConfigDef: JsonSchema = new JsonSchema {
156
152
  description = "Built-in lint preset"
157
153
  default = "happy-path"
158
154
  }
155
+ ["typeAware"] = new JsonSchema {
156
+ type = "boolean"
157
+ description = "Enable native type-aware lint rules from the active lint configuration"
158
+ }
159
159
  ["rules"] = new JsonSchema {
160
160
  type = "object"
161
161
  description = "Rules to enable/disable"
package/pkl/vize.pkl CHANGED
@@ -47,6 +47,7 @@ class VitePluginConfig {
47
47
  class LinterConfig {
48
48
  enabled: Boolean? = null
49
49
  preset: LintPreset? = null
50
+ typeAware: Boolean? = null
50
51
  rules: Mapping<String, RuleSeverity>? = null
51
52
  categories: Mapping<String, RuleSeverity>? = null
52
53
  }