vize 0.260.0 → 0.261.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-U3yf2qHF.d.mts → config-B6igHPzd.d.mts} +2 -2
- package/dist/{config-U3yf2qHF.d.mts.map → config-B6igHPzd.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
- package/pkl/LinterConfig.pkl +42 -0
- package/pkl/vize.pkl +25 -0
- package/src/types/rules.ts +1 -0
|
@@ -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-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-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-restricted-globals", "script/no-side-effects-in-computed-properties", "script/no-top-level-ref-in-script", "script/no-unstable-nested-components", "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-invalid-html-attribute", "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"];
|
|
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-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-restricted-globals", "script/no-restricted-members", "script/no-side-effects-in-computed-properties", "script/no-top-level-ref-in-script", "script/no-unstable-nested-components", "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-invalid-html-attribute", "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-
|
|
664
|
+
//# sourceMappingURL=config-B6igHPzd.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-B6igHPzd.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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AeA,4BAAA;AAAA,cAMA,2BAAA;;;AJ7Bb;;iBImCgB,YAAA,CAAa,MAAA,EAAQ,gBAAA,GAAmB,gBAAA;;;AJjCxD;iBIwCsB,UAAA,CACpB,IAAA,UACA,OAAA,GAAS,iBAAA,GACR,OAAA,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-
|
|
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-B6igHPzd.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-
|
|
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-B6igHPzd.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.
|
|
3
|
+
"version": "0.261.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@vizejs/native": "0.
|
|
55
|
+
"@vizejs/native": "0.261.0",
|
|
56
56
|
"oxc-transform": "0.130.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
package/pkl/LinterConfig.pkl
CHANGED
|
@@ -7,6 +7,45 @@ typealias RuleCategory = "correctness"|"suspicious"|"style"|"perf"|"a11y"|"secur
|
|
|
7
7
|
|
|
8
8
|
typealias LintPreset = "happy-path"|"opinionated"|"essential"|"incremental"|"ecosystem"|"nuxt"
|
|
9
9
|
|
|
10
|
+
/// A restricted global identifier for `script/no-restricted-globals`.
|
|
11
|
+
class RestrictedGlobal {
|
|
12
|
+
/// Identifier name to forbid (e.g. `process`).
|
|
13
|
+
name: String
|
|
14
|
+
|
|
15
|
+
/// Optional advisory message shown in the diagnostic.
|
|
16
|
+
message: String? = null
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/// A restricted `object.property` member access for `script/no-restricted-members`.
|
|
20
|
+
class RestrictedMember {
|
|
21
|
+
/// Object identifier (e.g. `window`).
|
|
22
|
+
object: String
|
|
23
|
+
|
|
24
|
+
/// Property name accessed on the object (e.g. `localStorage`).
|
|
25
|
+
property: String
|
|
26
|
+
|
|
27
|
+
/// Optional advisory message shown in the diagnostic.
|
|
28
|
+
message: String? = null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/// Options for `script/no-restricted-globals`. A non-empty `globals` list
|
|
32
|
+
/// replaces the built-in default deny list.
|
|
33
|
+
class NoRestrictedGlobalsOptions {
|
|
34
|
+
globals: Listing<RestrictedGlobal>? = null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/// Options for `script/no-restricted-members`. The rule is off unless `members`
|
|
38
|
+
/// is configured.
|
|
39
|
+
class NoRestrictedMembersOptions {
|
|
40
|
+
members: Listing<RestrictedMember>? = null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/// Typed per-rule options for rules that accept project-local configuration.
|
|
44
|
+
class LintRuleOptions {
|
|
45
|
+
`script/no-restricted-globals`: NoRestrictedGlobalsOptions? = null
|
|
46
|
+
`script/no-restricted-members`: NoRestrictedMembersOptions? = null
|
|
47
|
+
}
|
|
48
|
+
|
|
10
49
|
class LinterConfig {
|
|
11
50
|
/// Enable linting.
|
|
12
51
|
enabled: Boolean = true
|
|
@@ -20,6 +59,9 @@ class LinterConfig {
|
|
|
20
59
|
/// Rules to enable/disable.
|
|
21
60
|
rules: Mapping<String, RuleSeverity> = new Mapping {}
|
|
22
61
|
|
|
62
|
+
/// Typed per-rule options for rules that accept project-local configuration.
|
|
63
|
+
ruleOptions: LintRuleOptions? = null
|
|
64
|
+
|
|
23
65
|
/// Category-level severity overrides.
|
|
24
66
|
categories: Mapping<RuleCategory, RuleSeverity> = new Mapping {}
|
|
25
67
|
}
|
package/pkl/vize.pkl
CHANGED
|
@@ -44,11 +44,36 @@ class VitePluginConfig {
|
|
|
44
44
|
ignorePatterns: Listing<String>? = null
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
class RestrictedGlobal {
|
|
48
|
+
name: String
|
|
49
|
+
message: String? = null
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class RestrictedMember {
|
|
53
|
+
object: String
|
|
54
|
+
property: String
|
|
55
|
+
message: String? = null
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
class NoRestrictedGlobalsOptions {
|
|
59
|
+
globals: Listing<RestrictedGlobal>? = null
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
class NoRestrictedMembersOptions {
|
|
63
|
+
members: Listing<RestrictedMember>? = null
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
class LintRuleOptions {
|
|
67
|
+
`script/no-restricted-globals`: NoRestrictedGlobalsOptions? = null
|
|
68
|
+
`script/no-restricted-members`: NoRestrictedMembersOptions? = null
|
|
69
|
+
}
|
|
70
|
+
|
|
47
71
|
class LinterConfig {
|
|
48
72
|
enabled: Boolean? = null
|
|
49
73
|
preset: LintPreset? = null
|
|
50
74
|
typeAware: Boolean? = null
|
|
51
75
|
rules: Mapping<String, RuleSeverity>? = null
|
|
76
|
+
ruleOptions: LintRuleOptions? = null
|
|
52
77
|
categories: Mapping<String, RuleSeverity>? = null
|
|
53
78
|
}
|
|
54
79
|
|
package/src/types/rules.ts
CHANGED
|
@@ -96,6 +96,7 @@ export const LINT_RULE_NAMES = [
|
|
|
96
96
|
"script/no-reserved-keys",
|
|
97
97
|
"script/no-reserved-props",
|
|
98
98
|
"script/no-restricted-globals",
|
|
99
|
+
"script/no-restricted-members",
|
|
99
100
|
"script/no-side-effects-in-computed-properties",
|
|
100
101
|
"script/no-top-level-ref-in-script",
|
|
101
102
|
"script/no-unstable-nested-components",
|