vize 0.212.0 → 0.214.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.
@@ -166,10 +166,10 @@ interface LinterConfig {
166
166
  * Enable linting
167
167
  */
168
168
  enabled?: boolean;
169
- /**
170
- * Built-in lint preset
171
- */
169
+ /** Built-in lint preset */
172
170
  preset?: "happy-path" | "opinionated" | "essential" | "incremental" | "ecosystem" | "nuxt";
171
+ /** Enable native type-aware lint rules from the active lint configuration */
172
+ typeAware?: boolean;
173
173
  /**
174
174
  * Rules to enable/disable
175
175
  */
@@ -589,7 +589,7 @@ interface VizeConfigEntry {
589
589
  }
590
590
  //#endregion
591
591
  //#region src/types/rules.d.ts
592
- declare const LINT_RULE_NAMES: readonly ["a11y/alt-text", "a11y/anchor-has-content", "a11y/anchor-is-valid", "a11y/aria-props", "a11y/aria-role", "a11y/aria-unsupported-elements", "a11y/click-events-have-key-events", "a11y/form-control-has-label", "a11y/heading-has-content", "a11y/heading-levels", "a11y/iframe-has-title", "a11y/img-alt", "a11y/interactive-supports-focus", "a11y/label-has-for", "a11y/landmark-roles", "a11y/media-has-caption", "a11y/mouse-events-have-key-events", "a11y/no-access-key", "a11y/no-aria-hidden-on-focusable", "a11y/no-autofocus", "a11y/no-distracting-elements", "a11y/no-i-for-icon", "a11y/no-redundant-roles", "a11y/no-refer-to-non-existent-id", "a11y/no-role-presentation-on-focusable", "a11y/no-static-element-interactions", "a11y/placeholder-label-option", "a11y/role-has-required-aria-props", "a11y/tabindex-no-positive", "a11y/use-list", "css/no-display-none", "css/no-hardcoded-values", "css/no-id-selectors", "css/no-important", "css/no-utility-classes", "css/no-v-bind-performance", "css/prefer-logical-properties", "css/prefer-nested-selectors", "css/prefer-slotted", "css/require-font-display", "ecosystem/nuxt-prefer-nuxt-link", "ecosystem/pinia-prefer-store-to-refs", "ecosystem/router-link-require-to", "ecosystem/void-link-require-href", "ecosystem/void-link-valid-method", "ecosystem/vue-i18n-no-missing-key", "ecosystem/vue-router-prefer-named-link", "ecosystem/vue-router-prefer-named-push", "ecosystem/vue-test-utils-no-html-snapshot", "html/deprecated-attr", "html/deprecated-element", "html/id-duplication", "html/no-consecutive-br", "html/no-duplicate-dt", "html/no-empty-palpable-content", "html/require-datetime", "petite-vue/no-unsupported-directive", "petite-vue/valid-v-effect", "petite-vue/valid-v-scope", "script/no-async-in-computed", "script/no-deep-destructure-in-props", "script/no-dupe-keys", "script/no-get-current-instance", "script/no-import-compiler-macros", "script/no-internal-imports", "script/no-next-tick", "script/no-options-api", "script/no-reactive-destructure", "script/no-reserved-identifiers", "script/no-side-effects-in-computed-properties", "script/no-top-level-ref-in-script", "script/no-with-defaults", "script/prefer-computed", "script/prefer-import-from-vue", "script/prefer-ref-over-reactive", "script/prefer-use-attrs", "script/prefer-use-id", "script/prefer-use-slots", "script/prefer-use-template-ref", "script/require-function-return-type", "script/require-symbol-provide", "ssr/no-browser-globals-in-ssr", "ssr/no-hydration-mismatch", "type/no-floating-promises", "type/no-reactivity-loss", "type/no-unsafe-template-binding", "type/require-typed-emits", "type/require-typed-props", "vapor/no-inline-template", "vapor/no-vue-lifecycle-events", "vapor/prefer-static-class", "vapor/require-vapor-attribute", "vue/attribute-hyphenation", "vue/attribute-order", "vue/component-definition-name-casing", "vue/component-name-in-template-casing", "vue/html-quotes", "vue/html-self-closing", "vue/multi-word-component-names", "vue/mustache-interpolation-spacing", "vue/no-boolean-attr-value", "vue/no-child-content", "vue/no-deprecated-v-bind-sync", "vue/no-deprecated-v-on-native-modifier", "vue/no-dupe-v-else-if", "vue/no-duplicate-attributes", "vue/no-inline-style", "vue/no-lone-template", "vue/no-multi-spaces", "vue/no-mutating-props", "vue/no-preprocessor-lang", "vue/no-reserved-component-names", "vue/no-script-non-standard-lang", "vue/no-src-attribute", "vue/no-template-key", "vue/no-template-lang", "vue/no-template-shadow", "vue/no-textarea-mustache", "vue/no-unsafe-url", "vue/no-unused-components", "vue/no-unused-properties", "vue/no-unused-vars", "vue/no-use-v-if-with-v-for", "vue/no-useless-template-attributes", "vue/no-v-html", "vue/no-v-text-v-html-on-component", "vue/permitted-contents", "vue/prefer-props-shorthand", "vue/prop-name-casing", "vue/require-component-is", "vue/require-component-registration", "vue/require-scoped-style", "vue/require-v-for-key", "vue/scoped-event-names", "vue/sfc-element-order", "vue/single-style-block", "vue/use-unique-element-ids", "vue/use-v-on-exact", "vue/v-bind-style", "vue/v-on-style", "vue/v-slot-style", "vue/valid-attribute-name", "vue/valid-v-bind", "vue/valid-v-else", "vue/valid-v-for", "vue/valid-v-if", "vue/valid-v-memo", "vue/valid-v-model", "vue/valid-v-on", "vue/valid-v-show", "vue/valid-v-slot", "vue/warn-custom-block", "vue/warn-custom-directive"];
592
+ declare const LINT_RULE_NAMES: readonly ["a11y/alt-text", "a11y/anchor-has-content", "a11y/anchor-is-valid", "a11y/aria-props", "a11y/aria-role", "a11y/aria-unsupported-elements", "a11y/click-events-have-key-events", "a11y/form-control-has-label", "a11y/heading-has-content", "a11y/heading-levels", "a11y/iframe-has-title", "a11y/img-alt", "a11y/interactive-supports-focus", "a11y/label-has-for", "a11y/landmark-roles", "a11y/media-has-caption", "a11y/mouse-events-have-key-events", "a11y/no-access-key", "a11y/no-aria-hidden-on-focusable", "a11y/no-autofocus", "a11y/no-distracting-elements", "a11y/no-i-for-icon", "a11y/no-redundant-roles", "a11y/no-refer-to-non-existent-id", "a11y/no-role-presentation-on-focusable", "a11y/no-static-element-interactions", "a11y/placeholder-label-option", "a11y/role-has-required-aria-props", "a11y/tabindex-no-positive", "a11y/use-list", "css/no-display-none", "css/no-hardcoded-values", "css/no-id-selectors", "css/no-important", "css/no-utility-classes", "css/no-v-bind-performance", "css/prefer-logical-properties", "css/prefer-nested-selectors", "css/prefer-slotted", "css/require-font-display", "ecosystem/nuxt-prefer-nuxt-link", "ecosystem/pinia-prefer-store-to-refs", "ecosystem/router-link-require-to", "ecosystem/void-link-require-href", "ecosystem/void-link-valid-method", "ecosystem/vue-i18n-no-missing-key", "ecosystem/vue-router-prefer-named-link", "ecosystem/vue-router-prefer-named-push", "ecosystem/vue-test-utils-no-html-snapshot", "html/deprecated-attr", "html/deprecated-element", "html/id-duplication", "html/no-consecutive-br", "html/no-dupe-style-properties", "html/no-duplicate-class", "html/no-duplicate-dt", "html/no-empty-palpable-content", "html/require-datetime", "petite-vue/no-unsupported-directive", "petite-vue/valid-v-effect", "petite-vue/valid-v-scope", "script/component-options-name-casing", "script/custom-event-name-casing", "script/define-emits-declaration", "script/define-macros-order", "script/define-props-declaration", "script/define-props-destructuring", "script/no-arrow-functions-in-watch", "script/no-async-in-computed", "script/no-boolean-default", "script/no-deep-destructure-in-props", "script/no-deprecated-data-object-declaration", "script/no-deprecated-dollar-listeners-api", "script/no-deprecated-dollar-scopedslots-api", "script/no-deprecated-events-api", "script/no-deprecated-props-default-this", "script/no-dupe-keys", "script/no-duplicate-attr-inheritance", "script/no-export-in-script-setup", "script/no-get-current-instance", "script/no-import-compiler-macros", "script/no-internal-imports", "script/no-multiple-slot-args", "script/no-next-tick", "script/no-options-api", "script/no-potential-component-option-typo", "script/no-reactive-destructure", "script/no-ref-as-operand", "script/no-required-prop-with-default", "script/no-reserved-identifiers", "script/no-reserved-keys", "script/no-reserved-props", "script/no-side-effects-in-computed-properties", "script/no-top-level-ref-in-script", "script/no-unused-emit-declarations", "script/no-use-computed-property-like-method", "script/no-with-defaults", "script/prefer-computed", "script/prefer-define-options", "script/prefer-import-from-vue", "script/prefer-ref-over-reactive", "script/prefer-use-attrs", "script/prefer-use-id", "script/prefer-use-slots", "script/prefer-use-template-ref", "script/require-default-prop", "script/require-explicit-emits", "script/require-explicit-slots", "script/require-function-return-type", "script/require-prop-type-constructor", "script/require-prop-types", "script/require-symbol-provide", "script/require-typed-object-prop", "script/require-typed-ref", "script/require-valid-default-prop", "script/return-in-computed-property", "script/return-in-emits-validator", "script/valid-define-emits", "script/valid-define-options", "script/valid-define-props", "script/valid-next-tick", "ssr/no-browser-globals-in-ssr", "ssr/no-hydration-mismatch", "type/no-floating-promises", "type/no-reactivity-loss", "type/no-unsafe-template-binding", "type/require-typed-emits", "type/require-typed-props", "vapor/no-inline-template", "vapor/no-vue-lifecycle-events", "vapor/prefer-static-class", "vapor/require-vapor-attribute", "vue/attribute-hyphenation", "vue/attribute-order", "vue/component-definition-name-casing", "vue/component-name-in-template-casing", "vue/html-button-has-type", "vue/html-quotes", "vue/html-self-closing", "vue/multi-word-component-names", "vue/mustache-interpolation-spacing", "vue/no-array-index-key", "vue/no-bare-strings-in-template", "vue/no-boolean-attr-value", "vue/no-child-content", "vue/no-deprecated-filter", "vue/no-deprecated-functional-template", "vue/no-deprecated-html-element-is", "vue/no-deprecated-router-link-tag-prop", "vue/no-deprecated-scope-attribute", "vue/no-deprecated-slot-attribute", "vue/no-deprecated-slot-scope-attribute", "vue/no-deprecated-v-bind-sync", "vue/no-deprecated-v-on-native-modifier", "vue/no-deprecated-v-on-number-modifiers", "vue/no-dupe-v-else-if", "vue/no-duplicate-attributes", "vue/no-empty-component-block", "vue/no-inline-style", "vue/no-lone-template", "vue/no-multi-spaces", "vue/no-multiple-objects-in-class", "vue/no-mutating-props", "vue/no-negated-v-if-condition", "vue/no-preprocessor-lang", "vue/no-reserved-component-names", "vue/no-root-v-if", "vue/no-script-non-standard-lang", "vue/no-src-attribute", "vue/no-template-key", "vue/no-template-lang", "vue/no-template-shadow", "vue/no-template-target-blank", "vue/no-textarea-mustache", "vue/no-unsafe-url", "vue/no-unsandboxed-iframe", "vue/no-unused-components", "vue/no-unused-properties", "vue/no-unused-refs", "vue/no-unused-vars", "vue/no-use-v-if-with-v-for", "vue/no-useless-mustaches", "vue/no-useless-template-attributes", "vue/no-useless-v-bind", "vue/no-v-for-template-key-on-child", "vue/no-v-html", "vue/no-v-text", "vue/no-v-text-v-html-on-component", "vue/permitted-contents", "vue/prefer-props-shorthand", "vue/prefer-true-attribute-shorthand", "vue/prop-name-casing", "vue/require-component-is", "vue/require-component-registration", "vue/require-scoped-style", "vue/require-toggle-inside-transition", "vue/require-v-for-key", "vue/scoped-event-names", "vue/sfc-element-order", "vue/single-style-block", "vue/slot-name-casing", "vue/this-in-template", "vue/use-unique-element-ids", "vue/use-v-on-exact", "vue/v-bind-style", "vue/v-on-event-hyphenation", "vue/v-on-handler-style", "vue/v-on-style", "vue/v-slot-style", "vue/valid-attribute-name", "vue/valid-template-root", "vue/valid-v-bind", "vue/valid-v-cloak", "vue/valid-v-else", "vue/valid-v-for", "vue/valid-v-html", "vue/valid-v-if", "vue/valid-v-memo", "vue/valid-v-model", "vue/valid-v-on", "vue/valid-v-once", "vue/valid-v-show", "vue/valid-v-slot", "vue/valid-v-text", "vue/warn-custom-block", "vue/warn-custom-directive"];
593
593
  type LintRuleName = (typeof LINT_RULE_NAMES)[number];
594
594
  type LintRulesConfig = Partial<Record<LintRuleName, RuleSeverity>>;
595
595
  //#endregion
@@ -661,4 +661,4 @@ declare function resolveConfigExport(exported: UserConfigExport, env?: ConfigEnv
661
661
  declare function normalizeGlobalTypes(config: GlobalTypesConfig): Record<string, GlobalTypeDeclaration>;
662
662
  //#endregion
663
663
  export { RuleSeverity as A, LintPreset as C, MuseaConfig as D, MuseaAutogenConfig as E, VueVersion as F, VitePluginConfig as M, VizeConfig as N, MuseaVrtConfig as O, VizeConfigEntry as P, LanguageServerConfig as S, MuseaA11yConfig as T, CompilerCompatibilityConfig as _, loadConfig as a, GlobalTypeDeclaration as b, LspConfig as c, MaybePromise as d, ResolvedVizeConfig as f, LintRulesConfig as g, LintRuleName as h, defineConfig as i, TypeCheckerConfig as j, RuleCategory as k, ConfigEnv as l, UserConfigInput as m, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, UserConfigExport as p, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t, LoadConfigOptions as u, CompilerConfig as v, LinterConfig as w, GlobalTypesConfig as x, FormatterConfig as y };
664
- //# sourceMappingURL=config-C0bU5U2Z.d.mts.map
664
+ //# sourceMappingURL=config-BkHQ6mxc.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-BkHQ6mxc.d.mts","names":[],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA;AAAA,KAQA,YAAA;AAAA,KAEA,YAAA;;;;KAKA,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,QAAA;EAaW;;;EATX,KAAA;EAaY;;;EATZ,OAAA;EAac;;;EATd,OAAA;EACA,QAAA,GAAW,cAAA;EACX,IAAA,GAAO,gBAAA;EACP,MAAA,GAAS,YAAA;EACT,WAAA,GAAc,iBAAA;EACd,SAAA,GAAY,eAAA;EACZ,cAAA,GAAiB,oBAAA;EACjB,GAAA,GAAM,oBAAA;EACN,KAAA,GAAQ,WAAA;EACR,WAAA,GAAc,iBAAA;EANd;;;EAUA,OAAA,GAAU,eAAA;AAAA;;;;UAKK,cAAA;EAXT;;;EAeN,IAAA;EAbc;;;EAiBd,KAAA;EAbyB;AAK3B;;EAYE,OAAA;EA6C2C;;;EAzC3C,cAAA;EAAA;;;EAIA,GAAA;EAYA;;;EARA,cAAA;EAwBA;;;EApBA,SAAA;EA6BgB;;;EAzBhB,iBAAA;EA8B0C;;;EA1B1C,WAAA;EA2Ba;;;EAvBb,aAAA;EAuCA;;;EAnCA,IAAA;EA4Ce;;;EAxCf,SAAA;EA4CsC;;;EAxCtC,iBAAA;EA4C4C;;;EAxC5C,iBAAA;EACA,aAAA,GAAgB,2BAAA;AAAA;;;;UAKD,2BAAA;EACf,UAAA,GAAa,UAAA;EA8CE;;;EA1Cf,YAAA;EA8CA;;;EA1CA,uBAAA;EAmDG;;;EA/CH,eAAA;EAuDE;;;EAnDF,WAAA;EAsDU;;AAMZ;EAxDE,cAAA;AAAA;;;;UAKe,gBAAA;EAmEf;;;EA/DA,OAAA,YA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A,CAAQ,kBAAA;AAAA,iBA0FW,mBAAA,CACpB,QAAA,EAAU,gBAAA,EACV,GAAA,GAAM,SAAA,GACL,OAAA,CAAQ,kBAAA;;;AJnIX;iBIwMgB,oBAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,SAAe,qBAAA"}
package/dist/config.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as loadConfig, i as defineConfig, 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-C0bU5U2Z.mjs";
1
+ import { a as loadConfig, i as defineConfig, 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-BkHQ6mxc.mjs";
2
2
  export { CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as RuleSeverity, C as LintPreset, D as MuseaConfig, E as MuseaAutogenConfig, F as VueVersion, M as VitePluginConfig, N as VizeConfig, O as MuseaVrtConfig, P as VizeConfigEntry, S as LanguageServerConfig, T as MuseaA11yConfig, _ as CompilerCompatibilityConfig, a as loadConfig, b as GlobalTypeDeclaration, c as LspConfig, d as MaybePromise, f as ResolvedVizeConfig, g as LintRulesConfig, h as LintRuleName, i as defineConfig, j as TypeCheckerConfig, k as RuleCategory, l as ConfigEnv, m as UserConfigInput, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as UserConfigExport, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LoadConfigOptions, v as CompilerConfig, w as LinterConfig, x as GlobalTypesConfig, y as FormatterConfig } from "./config-C0bU5U2Z.mjs";
1
+ import { A as RuleSeverity, C as LintPreset, D as MuseaConfig, E as MuseaAutogenConfig, F as VueVersion, M as VitePluginConfig, N as VizeConfig, O as MuseaVrtConfig, P as VizeConfigEntry, S as LanguageServerConfig, T as MuseaA11yConfig, _ as CompilerCompatibilityConfig, a as loadConfig, b as GlobalTypeDeclaration, c as LspConfig, d as MaybePromise, f as ResolvedVizeConfig, g as LintRulesConfig, h as LintRuleName, i as defineConfig, j as TypeCheckerConfig, k as RuleCategory, l as ConfigEnv, m as UserConfigInput, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as UserConfigExport, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LoadConfigOptions, v as CompilerConfig, w as LinterConfig, x as GlobalTypesConfig, y as FormatterConfig } from "./config-BkHQ6mxc.mjs";
2
2
  export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, 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 UserConfigExport, type UserConfigInput, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vize",
3
- "version": "0.212.0",
3
+ "version": "0.214.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.212.0",
53
+ "@vizejs/native": "0.214.0",
54
54
  "oxc-transform": "0.130.0"
55
55
  },
56
56
  "devDependencies": {
@@ -181,19 +181,19 @@
181
181
  "additionalProperties": false
182
182
  },
183
183
  "LinterConfig": {
184
- "description": "Linter options",
185
184
  "type": "object",
186
185
  "properties": {
187
186
  "enabled": {
188
- "description": "Enable linting",
189
187
  "type": "boolean"
190
188
  },
191
189
  "preset": {
192
- "description": "Built-in lint preset",
193
190
  "default": "ecosystem",
194
191
  "type": "string",
195
192
  "enum": ["happy-path", "opinionated", "essential", "incremental", "ecosystem", "nuxt"]
196
193
  },
194
+ "typeAware": {
195
+ "type": "boolean"
196
+ },
197
197
  "rules": {
198
198
  "description": "Rules to enable/disable",
199
199
  "type": "object",
@@ -177,10 +177,10 @@ export interface LinterConfig {
177
177
  * Enable linting
178
178
  */
179
179
  enabled?: boolean;
180
- /**
181
- * Built-in lint preset
182
- */
180
+ /** Built-in lint preset */
183
181
  preset?: "happy-path" | "opinionated" | "essential" | "incremental" | "ecosystem" | "nuxt";
182
+ /** Enable native type-aware lint rules from the active lint configuration */
183
+ typeAware?: boolean;
184
184
  /**
185
185
  * Rules to enable/disable
186
186
  */
@@ -57,34 +57,74 @@ export const LINT_RULE_NAMES = [
57
57
  "html/deprecated-element",
58
58
  "html/id-duplication",
59
59
  "html/no-consecutive-br",
60
+ "html/no-dupe-style-properties",
61
+ "html/no-duplicate-class",
60
62
  "html/no-duplicate-dt",
61
63
  "html/no-empty-palpable-content",
62
64
  "html/require-datetime",
63
65
  "petite-vue/no-unsupported-directive",
64
66
  "petite-vue/valid-v-effect",
65
67
  "petite-vue/valid-v-scope",
68
+ "script/component-options-name-casing",
69
+ "script/custom-event-name-casing",
70
+ "script/define-emits-declaration",
71
+ "script/define-macros-order",
72
+ "script/define-props-declaration",
73
+ "script/define-props-destructuring",
74
+ "script/no-arrow-functions-in-watch",
66
75
  "script/no-async-in-computed",
76
+ "script/no-boolean-default",
67
77
  "script/no-deep-destructure-in-props",
78
+ "script/no-deprecated-data-object-declaration",
79
+ "script/no-deprecated-dollar-listeners-api",
80
+ "script/no-deprecated-dollar-scopedslots-api",
81
+ "script/no-deprecated-events-api",
82
+ "script/no-deprecated-props-default-this",
68
83
  "script/no-dupe-keys",
84
+ "script/no-duplicate-attr-inheritance",
85
+ "script/no-export-in-script-setup",
69
86
  "script/no-get-current-instance",
70
87
  "script/no-import-compiler-macros",
71
88
  "script/no-internal-imports",
89
+ "script/no-multiple-slot-args",
72
90
  "script/no-next-tick",
73
91
  "script/no-options-api",
92
+ "script/no-potential-component-option-typo",
74
93
  "script/no-reactive-destructure",
94
+ "script/no-ref-as-operand",
95
+ "script/no-required-prop-with-default",
75
96
  "script/no-reserved-identifiers",
97
+ "script/no-reserved-keys",
98
+ "script/no-reserved-props",
76
99
  "script/no-side-effects-in-computed-properties",
77
100
  "script/no-top-level-ref-in-script",
101
+ "script/no-unused-emit-declarations",
102
+ "script/no-use-computed-property-like-method",
78
103
  "script/no-with-defaults",
79
104
  "script/prefer-computed",
105
+ "script/prefer-define-options",
80
106
  "script/prefer-import-from-vue",
81
107
  "script/prefer-ref-over-reactive",
82
108
  "script/prefer-use-attrs",
83
109
  "script/prefer-use-id",
84
110
  "script/prefer-use-slots",
85
111
  "script/prefer-use-template-ref",
112
+ "script/require-default-prop",
113
+ "script/require-explicit-emits",
114
+ "script/require-explicit-slots",
86
115
  "script/require-function-return-type",
116
+ "script/require-prop-type-constructor",
117
+ "script/require-prop-types",
87
118
  "script/require-symbol-provide",
119
+ "script/require-typed-object-prop",
120
+ "script/require-typed-ref",
121
+ "script/require-valid-default-prop",
122
+ "script/return-in-computed-property",
123
+ "script/return-in-emits-validator",
124
+ "script/valid-define-emits",
125
+ "script/valid-define-options",
126
+ "script/valid-define-props",
127
+ "script/valid-next-tick",
88
128
  "ssr/no-browser-globals-in-ssr",
89
129
  "ssr/no-hydration-mismatch",
90
130
  "type/no-floating-promises",
@@ -100,61 +140,94 @@ export const LINT_RULE_NAMES = [
100
140
  "vue/attribute-order",
101
141
  "vue/component-definition-name-casing",
102
142
  "vue/component-name-in-template-casing",
143
+ "vue/html-button-has-type",
103
144
  "vue/html-quotes",
104
145
  "vue/html-self-closing",
105
146
  "vue/multi-word-component-names",
106
147
  "vue/mustache-interpolation-spacing",
148
+ "vue/no-array-index-key",
149
+ "vue/no-bare-strings-in-template",
107
150
  "vue/no-boolean-attr-value",
108
151
  "vue/no-child-content",
152
+ "vue/no-deprecated-filter",
153
+ "vue/no-deprecated-functional-template",
154
+ "vue/no-deprecated-html-element-is",
155
+ "vue/no-deprecated-router-link-tag-prop",
156
+ "vue/no-deprecated-scope-attribute",
157
+ "vue/no-deprecated-slot-attribute",
158
+ "vue/no-deprecated-slot-scope-attribute",
109
159
  "vue/no-deprecated-v-bind-sync",
110
160
  "vue/no-deprecated-v-on-native-modifier",
161
+ "vue/no-deprecated-v-on-number-modifiers",
111
162
  "vue/no-dupe-v-else-if",
112
163
  "vue/no-duplicate-attributes",
164
+ "vue/no-empty-component-block",
113
165
  "vue/no-inline-style",
114
166
  "vue/no-lone-template",
115
167
  "vue/no-multi-spaces",
168
+ "vue/no-multiple-objects-in-class",
116
169
  "vue/no-mutating-props",
170
+ "vue/no-negated-v-if-condition",
117
171
  "vue/no-preprocessor-lang",
118
172
  "vue/no-reserved-component-names",
173
+ "vue/no-root-v-if",
119
174
  "vue/no-script-non-standard-lang",
120
175
  "vue/no-src-attribute",
121
176
  "vue/no-template-key",
122
177
  "vue/no-template-lang",
123
178
  "vue/no-template-shadow",
179
+ "vue/no-template-target-blank",
124
180
  "vue/no-textarea-mustache",
125
181
  "vue/no-unsafe-url",
182
+ "vue/no-unsandboxed-iframe",
126
183
  "vue/no-unused-components",
127
184
  "vue/no-unused-properties",
185
+ "vue/no-unused-refs",
128
186
  "vue/no-unused-vars",
129
187
  "vue/no-use-v-if-with-v-for",
188
+ "vue/no-useless-mustaches",
130
189
  "vue/no-useless-template-attributes",
190
+ "vue/no-useless-v-bind",
191
+ "vue/no-v-for-template-key-on-child",
131
192
  "vue/no-v-html",
193
+ "vue/no-v-text",
132
194
  "vue/no-v-text-v-html-on-component",
133
195
  "vue/permitted-contents",
134
196
  "vue/prefer-props-shorthand",
197
+ "vue/prefer-true-attribute-shorthand",
135
198
  "vue/prop-name-casing",
136
199
  "vue/require-component-is",
137
200
  "vue/require-component-registration",
138
201
  "vue/require-scoped-style",
202
+ "vue/require-toggle-inside-transition",
139
203
  "vue/require-v-for-key",
140
204
  "vue/scoped-event-names",
141
205
  "vue/sfc-element-order",
142
206
  "vue/single-style-block",
207
+ "vue/slot-name-casing",
208
+ "vue/this-in-template",
143
209
  "vue/use-unique-element-ids",
144
210
  "vue/use-v-on-exact",
145
211
  "vue/v-bind-style",
212
+ "vue/v-on-event-hyphenation",
213
+ "vue/v-on-handler-style",
146
214
  "vue/v-on-style",
147
215
  "vue/v-slot-style",
148
216
  "vue/valid-attribute-name",
217
+ "vue/valid-template-root",
149
218
  "vue/valid-v-bind",
219
+ "vue/valid-v-cloak",
150
220
  "vue/valid-v-else",
151
221
  "vue/valid-v-for",
222
+ "vue/valid-v-html",
152
223
  "vue/valid-v-if",
153
224
  "vue/valid-v-memo",
154
225
  "vue/valid-v-model",
155
226
  "vue/valid-v-on",
227
+ "vue/valid-v-once",
156
228
  "vue/valid-v-show",
157
229
  "vue/valid-v-slot",
230
+ "vue/valid-v-text",
158
231
  "vue/warn-custom-block",
159
232
  "vue/warn-custom-directive",
160
233
  ] as const;
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-C0bU5U2Z.d.mts","names":[],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA;AAAA,KAQA,YAAA;AAAA,KAEA,YAAA;;;;KAKA,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,Q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