oxlint-plugin-vize 0.525.0 → 0.527.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.
|
@@ -57,6 +57,7 @@ interface VizeRuleOptions {
|
|
|
57
57
|
"vue/v-on-event-hyphenation"?: HyphenationStyle;
|
|
58
58
|
"vue/v-bind-style"?: VBindStyle;
|
|
59
59
|
"vue/v-on-style"?: VOnStyle;
|
|
60
|
+
"vue/v-slot-style"?: VSlotStyle;
|
|
60
61
|
"vue/attribute-hyphenation"?: HyphenationStyle;
|
|
61
62
|
"vue/valid-v-on"?: {
|
|
62
63
|
modifiers?: string[];
|
|
@@ -94,6 +95,13 @@ interface HtmlSelfClosingOption {
|
|
|
94
95
|
type HyphenationStyle = "always" | "never";
|
|
95
96
|
type VBindStyle = "shorthand" | "longform";
|
|
96
97
|
type VOnStyle = "shorthand" | "longform";
|
|
98
|
+
type VSlotUniformStyle = "shorthand" | "longform";
|
|
99
|
+
type VSlotStyleValue = VSlotUniformStyle | "v-slot";
|
|
100
|
+
type VSlotStyle = VSlotUniformStyle | {
|
|
101
|
+
atComponent?: VSlotStyleValue;
|
|
102
|
+
default?: VSlotStyleValue;
|
|
103
|
+
named?: VSlotUniformStyle;
|
|
104
|
+
};
|
|
97
105
|
//#endregion
|
|
98
106
|
//#region src/configs.d.ts
|
|
99
107
|
type OxlintRuleSeverity = "error" | "warn" | "off";
|
|
@@ -50,6 +50,9 @@ function getRuleOptions(ruleName, options) {
|
|
|
50
50
|
case "vue/v-on-style":
|
|
51
51
|
if (isVOnStyle(firstOption)) return { ruleOptions: { "vue/v-on-style": firstOption } };
|
|
52
52
|
break;
|
|
53
|
+
case "vue/v-slot-style":
|
|
54
|
+
if (isVSlotStyle(firstOption)) return { ruleOptions: { "vue/v-slot-style": structuredClone(firstOption) } };
|
|
55
|
+
break;
|
|
53
56
|
case "vue/v-bind-style":
|
|
54
57
|
if (isVBindStyle(firstOption)) return { ruleOptions: { "vue/v-bind-style": firstOption } };
|
|
55
58
|
break;
|
|
@@ -112,6 +115,16 @@ function isHyphenationStyle(value) {
|
|
|
112
115
|
function isVOnStyle(value) {
|
|
113
116
|
return value === "shorthand" || value === "longform";
|
|
114
117
|
}
|
|
118
|
+
function isVSlotStyle(value) {
|
|
119
|
+
if (value === "shorthand" || value === "longform") return true;
|
|
120
|
+
if (!isRecord(value) || !hasOnlyKeys(value, [
|
|
121
|
+
"atComponent",
|
|
122
|
+
"default",
|
|
123
|
+
"named"
|
|
124
|
+
])) return false;
|
|
125
|
+
const isSlotValue = (entry) => entry === void 0 || entry === "shorthand" || entry === "longform" || entry === "v-slot";
|
|
126
|
+
return isSlotValue(value.atComponent) && isSlotValue(value.default) && (value.named === void 0 || value.named === "shorthand" || value.named === "longform");
|
|
127
|
+
}
|
|
115
128
|
function isVBindStyle(value) {
|
|
116
129
|
return value === "shorthand" || value === "longform";
|
|
117
130
|
}
|
|
@@ -763,6 +776,19 @@ function ruleOptionsSchema(ruleName) {
|
|
|
763
776
|
case "vue/v-on-event-hyphenation":
|
|
764
777
|
case "vue/attribute-hyphenation": return [{ enum: ["always", "never"] }];
|
|
765
778
|
case "vue/v-on-style": return [{ enum: ["shorthand", "longform"] }];
|
|
779
|
+
case "vue/v-slot-style": return [{ oneOf: [{ enum: ["shorthand", "longform"] }, objectSchema({
|
|
780
|
+
atComponent: { enum: [
|
|
781
|
+
"shorthand",
|
|
782
|
+
"longform",
|
|
783
|
+
"v-slot"
|
|
784
|
+
] },
|
|
785
|
+
default: { enum: [
|
|
786
|
+
"shorthand",
|
|
787
|
+
"longform",
|
|
788
|
+
"v-slot"
|
|
789
|
+
] },
|
|
790
|
+
named: { enum: ["shorthand", "longform"] }
|
|
791
|
+
})] }];
|
|
766
792
|
case "vue/v-bind-style": return [{ enum: ["shorthand", "longform"] }];
|
|
767
793
|
case "vue/require-component-registration": return [objectSchema({ globals: stringArraySchema() })];
|
|
768
794
|
case "vue/valid-v-on": return [objectSchema({ modifiers: stringArraySchema() })];
|
package/dist/eslint.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createVizeRuleConfig, s as configs } from "./configs-
|
|
1
|
+
import { c as createVizeRuleConfig, s as configs } from "./configs-BCLKzRF_.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/eslint.d.ts
|
|
4
4
|
/** ESLint rules over the complete source supplied by the configured parser. */
|
package/dist/eslint.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getPatinaRules, c as isTypeAwareRuleName, d as getRuleOptions, i as formatPatinaMessage, l as createRuleSelection, n as createVizeRuleConfig, o as getActivePreset, r as plugin_default, s as getVizeSettings, t as configs } from "./configs-
|
|
1
|
+
import { a as getPatinaRules, c as isTypeAwareRuleName, d as getRuleOptions, i as formatPatinaMessage, l as createRuleSelection, n as createVizeRuleConfig, o as getActivePreset, r as plugin_default, s as getVizeSettings, t as configs } from "./configs-DSlmMmmU.mjs";
|
|
2
2
|
import { d as isPatinaFile, m as loadBinding } from "./workaround-Byh3ja-i.mjs";
|
|
3
3
|
import { definePlugin, defineRule, eslintCompatPlugin } from "@oxlint/plugins";
|
|
4
4
|
//#region src/eslint-source.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as VizeRuleConfigPreset, c as createVizeRuleConfig, d as VizeRuleOptions, i as VizeRuleConfigOptions, l as PatinaPreset, n as OxlintRuleEntry, o as VizeRuleConfigPresetInput, r as OxlintRuleSeverity, s as configs, t as OxlintRuleConfig, u as PatinaSettings } from "./configs-
|
|
1
|
+
import { a as VizeRuleConfigPreset, c as createVizeRuleConfig, d as VizeRuleOptions, i as VizeRuleConfigOptions, l as PatinaPreset, n as OxlintRuleEntry, o as VizeRuleConfigPresetInput, r as OxlintRuleSeverity, s as configs, t as OxlintRuleConfig, u as PatinaSettings } from "./configs-BCLKzRF_.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const _default: import("@oxlint/plugins").Plugin;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getPatinaRules, n as createVizeRuleConfig, r as plugin_default, t as configs, u as selectVizeRuleConfig } from "./configs-
|
|
1
|
+
import { a as getPatinaRules, n as createVizeRuleConfig, r as plugin_default, t as configs, u as selectVizeRuleConfig } from "./configs-DSlmMmmU.mjs";
|
|
2
2
|
//#region src/vite-plus.ts
|
|
3
3
|
/**
|
|
4
4
|
* Bare specifier Oxlint uses to load this bridge as a JS plugin.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.527.0",
|
|
4
4
|
"description": "Oxlint JS plugin bridge for Vize Patina",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@tsdown/css": "0.22.14",
|
|
50
50
|
"@types/node": "25.9.2",
|
|
51
|
-
"@vizejs/native": "0.
|
|
51
|
+
"@vizejs/native": "0.527.0",
|
|
52
52
|
"tsdown": "0.22.14",
|
|
53
53
|
"typescript": "6.0.3",
|
|
54
54
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.24",
|
|
55
55
|
"vite-plus": "0.1.24"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@vizejs/native-darwin-arm64": "0.
|
|
59
|
-
"@vizejs/native-darwin-x64": "0.
|
|
60
|
-
"@vizejs/native-linux-arm64-gnu": "0.
|
|
61
|
-
"@vizejs/native-linux-arm64-musl": "0.
|
|
62
|
-
"@vizejs/native-linux-x64-gnu": "0.
|
|
63
|
-
"@vizejs/native-linux-x64-musl": "0.
|
|
64
|
-
"@vizejs/native-win32-arm64-msvc": "0.
|
|
65
|
-
"@vizejs/native-win32-x64-msvc": "0.
|
|
58
|
+
"@vizejs/native-darwin-arm64": "0.527.0",
|
|
59
|
+
"@vizejs/native-darwin-x64": "0.527.0",
|
|
60
|
+
"@vizejs/native-linux-arm64-gnu": "0.527.0",
|
|
61
|
+
"@vizejs/native-linux-arm64-musl": "0.527.0",
|
|
62
|
+
"@vizejs/native-linux-x64-gnu": "0.527.0",
|
|
63
|
+
"@vizejs/native-linux-x64-musl": "0.527.0",
|
|
64
|
+
"@vizejs/native-win32-arm64-msvc": "0.527.0",
|
|
65
|
+
"@vizejs/native-win32-x64-msvc": "0.527.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "^22 || >= 24"
|