vize 0.745.0 → 0.746.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/pkl/vize.pkl CHANGED
@@ -244,39 +244,6 @@ 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
-
274
- class SortKeysOptions {
275
- order: "asc" | "desc" = "asc"
276
- caseSensitive: Boolean = true
277
- natural: Boolean = false
278
- }
279
-
280
247
  class LintRuleOptions {
281
248
  `script/define-macros-order`: DefineMacrosOrderOptions? = null
282
249
  `script/define-props-destructuring`: DefinePropsDestructuringOptions? = null
@@ -293,13 +260,26 @@ class LintRuleOptions {
293
260
  `vue/no-bare-strings-in-template`: NoBareStringsInTemplateOptions? = null
294
261
  `a11y/anchor-has-content`: AnchorHasContentOptions? = null
295
262
  `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
263
+ `vue/block-lang`: LintRuleOptionTypes.BlockLangOptions? = null
264
+ `max-lines`: LintRuleOptionTypes.MaxLinesOptions? = null
265
+ `vue/max-lines-per-block`: LintRuleOptionTypes.MaxLinesPerBlockOptions? = null
266
+ `vue/max-props`: LintRuleOptionTypes.MaxPropsOptions? = null
267
+ `vue/max-template-depth`: LintRuleOptionTypes.MaxTemplateDepthOptions? = null
268
+ `vue/no-restricted-block`: LintRuleOptionTypes.RestrictedNames? = null
269
+ `vue/no-restricted-call-after-await`: LintRuleOptionTypes.CallAfterAwaitOptions? = null
270
+ `vue/no-restricted-class`: LintRuleOptionTypes.RestrictedNames? = null
271
+ `vue/no-restricted-component-names`: LintRuleOptionTypes.RestrictedNames? = null
272
+ `vue/no-restricted-component-options`: LintRuleOptionTypes.RestrictedNames? = null
273
+ `vue/no-restricted-custom-event`: LintRuleOptionTypes.RestrictedNames? = null
274
+ `vue/no-restricted-html-elements`: LintRuleOptionTypes.RestrictedNames? = null
275
+ `vue/no-restricted-props`: LintRuleOptionTypes.RestrictedNames? = null
276
+ `vue/no-restricted-static-attribute`: LintRuleOptionTypes.RestrictedNames? = null
277
+ `vue/no-restricted-v-on`: LintRuleOptionTypes.RestrictedNames? = null
278
+ `vue/no-unsupported-features`: LintRuleOptionTypes.UnsupportedFeaturesOptions? = null
299
279
  `vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
300
280
  `vue/no-restricted-syntax`: (Listing<RestrictedSyntaxEntry> | NoRestrictedSyntaxOptions)? = null
301
281
  `vue/quote-props`: "as-needed"? = null
302
- `vue/sort-keys`: SortKeysOptions? = null
282
+ `vue/sort-keys`: LintRuleOptionTypes.SortKeysOptions? = null
303
283
  `vue/require-component-registration`: RequireComponentRegistrationOptions? = null
304
284
  `vue/sfc-element-order`: SfcElementOrderOptions? = null
305
285
  `vue/html-self-closing`: HtmlSelfClosingOptions? = null
@@ -330,12 +310,12 @@ class LinterConfig {
330
310
 
331
311
  /// Enable the native reactivity-loss rule unless rules explicitly disable it.
332
312
  strictReactivity: Boolean? = null
333
-
334
313
  /// Fail when warnings exceed this non-negative limit; absent means unlimited.
335
314
  maxWarnings: Int(isBetween(0, 9007199254740991))? = null
336
-
337
315
  /// Report template eslint/oxlint disable comments that suppress no active rule
338
316
  reportUnusedDisableDirectives: Boolean? = null
317
+ /// Ignore eslint-disable comments in source files
318
+ noInlineConfig: Boolean? = null
339
319
 
340
320
  rules: Mapping<String, RuleSeverity>? = null
341
321
  ruleOptions: LintRuleOptions? = null
@@ -250,6 +250,10 @@
250
250
  "type": "integer",
251
251
  "minimum": 0
252
252
  },
253
+ "noInlineConfig": {
254
+ "description": "Ignore eslint-disable comments in source files; defaults to false",
255
+ "type": "boolean"
256
+ },
253
257
  "reportUnusedDisableDirectives": {
254
258
  "description": "Report template eslint/oxlint disable comments that suppress no active rule; defaults to false",
255
259
  "type": "boolean"
@@ -814,6 +818,215 @@
814
818
  },
815
819
  "additionalProperties": false
816
820
  },
821
+ "vue/max-props": {
822
+ "type": "object",
823
+ "properties": {
824
+ "maxProps": {
825
+ "type": "integer"
826
+ }
827
+ },
828
+ "additionalProperties": false
829
+ },
830
+ "vue/max-template-depth": {
831
+ "type": "object",
832
+ "properties": {
833
+ "maxDepth": {
834
+ "type": "integer"
835
+ }
836
+ },
837
+ "additionalProperties": false
838
+ },
839
+ "vue/no-restricted-block": {
840
+ "oneOf": [
841
+ {
842
+ "type": "string"
843
+ },
844
+ {
845
+ "type": "array",
846
+ "items": {
847
+ "type": "string"
848
+ }
849
+ }
850
+ ]
851
+ },
852
+ "vue/no-restricted-call-after-await": {
853
+ "oneOf": [
854
+ {
855
+ "type": "object",
856
+ "properties": {
857
+ "module": {
858
+ "type": "string"
859
+ },
860
+ "path": {
861
+ "oneOf": [
862
+ {
863
+ "type": "string"
864
+ },
865
+ {
866
+ "type": "array",
867
+ "items": {
868
+ "type": "string"
869
+ }
870
+ }
871
+ ]
872
+ },
873
+ "message": {
874
+ "type": "string"
875
+ }
876
+ },
877
+ "additionalProperties": false,
878
+ "required": ["module"]
879
+ },
880
+ {
881
+ "type": "array",
882
+ "items": {
883
+ "type": "object",
884
+ "properties": {
885
+ "module": {
886
+ "type": "string"
887
+ },
888
+ "path": {
889
+ "oneOf": [
890
+ {
891
+ "type": "string"
892
+ },
893
+ {
894
+ "type": "array",
895
+ "items": {
896
+ "type": "string"
897
+ }
898
+ }
899
+ ]
900
+ },
901
+ "message": {
902
+ "type": "string"
903
+ }
904
+ },
905
+ "additionalProperties": false,
906
+ "required": ["module"]
907
+ }
908
+ }
909
+ ]
910
+ },
911
+ "vue/no-restricted-class": {
912
+ "oneOf": [
913
+ {
914
+ "type": "string"
915
+ },
916
+ {
917
+ "type": "array",
918
+ "items": {
919
+ "type": "string"
920
+ }
921
+ }
922
+ ]
923
+ },
924
+ "vue/no-restricted-component-names": {
925
+ "oneOf": [
926
+ {
927
+ "type": "string"
928
+ },
929
+ {
930
+ "type": "array",
931
+ "items": {
932
+ "type": "string"
933
+ }
934
+ }
935
+ ]
936
+ },
937
+ "vue/no-restricted-component-options": {
938
+ "oneOf": [
939
+ {
940
+ "type": "string"
941
+ },
942
+ {
943
+ "type": "array",
944
+ "items": {
945
+ "type": "string"
946
+ }
947
+ }
948
+ ]
949
+ },
950
+ "vue/no-restricted-custom-event": {
951
+ "oneOf": [
952
+ {
953
+ "type": "string"
954
+ },
955
+ {
956
+ "type": "array",
957
+ "items": {
958
+ "type": "string"
959
+ }
960
+ }
961
+ ]
962
+ },
963
+ "vue/no-restricted-html-elements": {
964
+ "oneOf": [
965
+ {
966
+ "type": "string"
967
+ },
968
+ {
969
+ "type": "array",
970
+ "items": {
971
+ "type": "string"
972
+ }
973
+ }
974
+ ]
975
+ },
976
+ "vue/no-restricted-props": {
977
+ "oneOf": [
978
+ {
979
+ "type": "string"
980
+ },
981
+ {
982
+ "type": "array",
983
+ "items": {
984
+ "type": "string"
985
+ }
986
+ }
987
+ ]
988
+ },
989
+ "vue/no-restricted-static-attribute": {
990
+ "oneOf": [
991
+ {
992
+ "type": "string"
993
+ },
994
+ {
995
+ "type": "array",
996
+ "items": {
997
+ "type": "string"
998
+ }
999
+ }
1000
+ ]
1001
+ },
1002
+ "vue/no-restricted-v-on": {
1003
+ "oneOf": [
1004
+ {
1005
+ "type": "string"
1006
+ },
1007
+ {
1008
+ "type": "array",
1009
+ "items": {
1010
+ "type": "string"
1011
+ }
1012
+ }
1013
+ ]
1014
+ },
1015
+ "vue/no-unsupported-features": {
1016
+ "type": "object",
1017
+ "properties": {
1018
+ "version": {
1019
+ "type": "string"
1020
+ },
1021
+ "ignores": {
1022
+ "type": "array",
1023
+ "items": {
1024
+ "type": "string"
1025
+ }
1026
+ }
1027
+ },
1028
+ "additionalProperties": false
1029
+ },
817
1030
  "vue/enforce-style-attribute": {
818
1031
  "type": "object",
819
1032
  "properties": {
@@ -236,6 +236,10 @@ export interface LinterConfig {
236
236
  * Fail when warnings exceed this limit; absent means unlimited
237
237
  */
238
238
  maxWarnings?: number;
239
+ /**
240
+ * Ignore eslint-disable comments in source files; defaults to false
241
+ */
242
+ noInlineConfig?: boolean;
239
243
  /**
240
244
  * Report template eslint/oxlint disable comments that suppress no active rule; defaults to false
241
245
  */
@@ -342,6 +346,36 @@ export interface LintRuleOptions {
342
346
  script?: number;
343
347
  skipBlankLines?: boolean;
344
348
  };
349
+ "vue/max-props"?: {
350
+ maxProps?: number;
351
+ };
352
+ "vue/max-template-depth"?: {
353
+ maxDepth?: number;
354
+ };
355
+ "vue/no-restricted-block"?: string | string[];
356
+ "vue/no-restricted-call-after-await"?:
357
+ | {
358
+ module: string;
359
+ path?: string | string[];
360
+ message?: string;
361
+ }
362
+ | {
363
+ module: string;
364
+ path?: string | string[];
365
+ message?: string;
366
+ }[];
367
+ "vue/no-restricted-class"?: string | string[];
368
+ "vue/no-restricted-component-names"?: string | string[];
369
+ "vue/no-restricted-component-options"?: string | string[];
370
+ "vue/no-restricted-custom-event"?: string | string[];
371
+ "vue/no-restricted-html-elements"?: string | string[];
372
+ "vue/no-restricted-props"?: string | string[];
373
+ "vue/no-restricted-static-attribute"?: string | string[];
374
+ "vue/no-restricted-v-on"?: string | string[];
375
+ "vue/no-unsupported-features"?: {
376
+ version?: string;
377
+ ignores?: string[];
378
+ };
345
379
  "vue/enforce-style-attribute"?: {
346
380
  allow?: ("plain" | "scoped" | "module")[];
347
381
  };
@@ -32,6 +32,7 @@ export const LINT_RULE_NAMES = [
32
32
  "a11y/no-static-element-interactions",
33
33
  "a11y/placeholder-label-option",
34
34
  "a11y/role-has-required-aria-props",
35
+ "a11y/role-img-has-name",
35
36
  "a11y/tabindex-no-positive",
36
37
  "a11y/use-list",
37
38
  "css/no-display-none",
@@ -156,12 +157,51 @@ export const LINT_RULE_NAMES = [
156
157
  "script/valid-next-tick",
157
158
  "ssr/no-browser-globals-in-ssr",
158
159
  "ssr/no-hydration-mismatch",
160
+ "type/await-thenable",
161
+ "type/no-array-delete",
162
+ "type/no-base-to-string",
163
+ "type/no-confusing-void-expression",
164
+ "type/no-deprecated",
165
+ "type/no-duplicate-type-constituents",
159
166
  "type/no-floating-promises",
167
+ "type/no-for-in-array",
168
+ "type/no-generated-empty-object-type",
169
+ "type/no-implied-eval",
170
+ "type/no-meaningless-void-operator",
171
+ "type/no-misused-promises",
172
+ "type/no-misused-spread",
173
+ "type/no-mixed-enums",
160
174
  "type/no-reactivity-loss",
175
+ "type/no-redundant-type-constituents",
176
+ "type/no-unnecessary-boolean-literal-compare",
177
+ "type/no-unnecessary-condition",
178
+ "type/no-unnecessary-template-expression",
179
+ "type/no-unnecessary-type-arguments",
180
+ "type/no-unnecessary-type-assertion",
181
+ "type/no-unnecessary-type-conversion",
182
+ "type/no-unsafe-argument",
183
+ "type/no-unsafe-assignment",
184
+ "type/no-unsafe-call",
185
+ "type/no-unsafe-enum-assignment",
186
+ "type/no-unsafe-enum-comparison",
187
+ "type/no-unsafe-member-access",
188
+ "type/no-unsafe-return",
161
189
  "type/no-unsafe-template-binding",
190
+ "type/no-unsafe-unary-minus",
191
+ "type/only-throw-error",
192
+ "type/prefer-promise-reject-errors",
193
+ "type/prefer-reduce-type-parameter",
194
+ "type/prefer-return-this-type",
195
+ "type/related-getter-setter-pairs",
196
+ "type/require-await",
162
197
  "type/require-typed-emits",
163
198
  "type/require-typed-props",
199
+ "type/restrict-plus-operands",
200
+ "type/restrict-template-expressions",
201
+ "type/return-await",
164
202
  "type/strict-boolean-expressions",
203
+ "type/unbound-method",
204
+ "type/use-unknown-in-catch-callback-variable",
165
205
  "vapor/no-inline-template",
166
206
  "vapor/no-vue-lifecycle-events",
167
207
  "vapor/prefer-static-class",
@@ -184,7 +224,9 @@ export const LINT_RULE_NAMES = [
184
224
  "vue/jsx-uses-vars",
185
225
  "vue/match-component-file-name",
186
226
  "vue/max-lines-per-block",
227
+ "vue/max-props",
187
228
  "vue/max-template-complexity",
229
+ "vue/max-template-depth",
188
230
  "vue/multi-word-component-names",
189
231
  "vue/mustache-interpolation-spacing",
190
232
  "vue/next-tick-style",
@@ -231,8 +273,18 @@ export const LINT_RULE_NAMES = [
231
273
  "vue/no-props-shadow",
232
274
  "vue/no-ref-object-reactivity-loss",
233
275
  "vue/no-reserved-component-names",
276
+ "vue/no-restricted-block",
277
+ "vue/no-restricted-call-after-await",
278
+ "vue/no-restricted-class",
279
+ "vue/no-restricted-component-names",
280
+ "vue/no-restricted-component-options",
281
+ "vue/no-restricted-custom-event",
282
+ "vue/no-restricted-html-elements",
283
+ "vue/no-restricted-props",
284
+ "vue/no-restricted-static-attribute",
234
285
  "vue/no-restricted-syntax",
235
286
  "vue/no-restricted-v-bind",
287
+ "vue/no-restricted-v-on",
236
288
  "vue/no-root-v-if",
237
289
  "vue/no-script-non-standard-lang",
238
290
  "vue/no-setup-props-reactivity-loss",
@@ -249,9 +301,11 @@ export const LINT_RULE_NAMES = [
249
301
  "vue/no-undefined-refs",
250
302
  "vue/no-unsafe-url",
251
303
  "vue/no-unsandboxed-iframe",
304
+ "vue/no-unsupported-features",
252
305
  "vue/no-unused-components",
253
306
  "vue/no-unused-properties",
254
307
  "vue/no-unused-refs",
308
+ "vue/no-unused-script-vars",
255
309
  "vue/no-unused-setup-bindings",
256
310
  "vue/no-unused-vars",
257
311
  "vue/no-use-v-else-with-v-for",
@@ -267,6 +321,7 @@ export const LINT_RULE_NAMES = [
267
321
  "vue/no-v-text-v-html-on-component",
268
322
  "vue/object-shorthand",
269
323
  "vue/permitted-contents",
324
+ "vue/prefer-const",
270
325
  "vue/prefer-prop-type-boolean-first",
271
326
  "vue/prefer-props-shorthand",
272
327
  "vue/prefer-template",