oxlint-plugin-vize 0.529.0 → 0.531.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.
|
@@ -44,6 +44,19 @@ function getRuleOptions(ruleName, options) {
|
|
|
44
44
|
case "vue/html-self-closing":
|
|
45
45
|
if (isHtmlSelfClosingOption(firstOption)) return { htmlSelfClosing: firstOption };
|
|
46
46
|
break;
|
|
47
|
+
case "vue/html-quotes": {
|
|
48
|
+
if (!isHtmlQuoteStyle(firstOption)) break;
|
|
49
|
+
const secondOption = options[1];
|
|
50
|
+
if (secondOption === void 0) return { ruleOptions: { "vue/html-quotes": firstOption } };
|
|
51
|
+
if (isRecord(secondOption) && hasOnlyKeys(secondOption, ["avoidEscape"]) && optionalBooleanField(secondOption.avoidEscape)) return { ruleOptions: { "vue/html-quotes": {
|
|
52
|
+
style: firstOption,
|
|
53
|
+
avoidEscape: secondOption.avoidEscape ?? false
|
|
54
|
+
} } };
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
case "vue/mustache-interpolation-spacing":
|
|
58
|
+
if (isMustacheInterpolationSpacingStyle(firstOption)) return { ruleOptions: { "vue/mustache-interpolation-spacing": firstOption } };
|
|
59
|
+
break;
|
|
47
60
|
case "vue/v-on-event-hyphenation":
|
|
48
61
|
if (isHyphenationStyle(firstOption)) return { vOnEventHyphenation: firstOption };
|
|
49
62
|
break;
|
|
@@ -109,6 +122,12 @@ function isHtmlSelfClosingOption(value) {
|
|
|
109
122
|
"component"
|
|
110
123
|
]) && optionField(value.html.void) && optionField(value.html.normal) && optionField(value.html.component));
|
|
111
124
|
}
|
|
125
|
+
function isHtmlQuoteStyle(value) {
|
|
126
|
+
return value === "double" || value === "single";
|
|
127
|
+
}
|
|
128
|
+
function isMustacheInterpolationSpacingStyle(value) {
|
|
129
|
+
return value === "always" || value === "never";
|
|
130
|
+
}
|
|
112
131
|
function isHyphenationStyle(value) {
|
|
113
132
|
return value === "always" || value === "never";
|
|
114
133
|
}
|
|
@@ -773,6 +792,8 @@ function ruleOptionsSchema(ruleName) {
|
|
|
773
792
|
case "script/define-macros-order": return [defineMacrosOrderSchema()];
|
|
774
793
|
case "vue/sfc-element-order": return [sfcElementOrderSchema()];
|
|
775
794
|
case "vue/html-self-closing": return [htmlSelfClosingSchema()];
|
|
795
|
+
case "vue/html-quotes": return [{ enum: ["double", "single"] }, objectSchema({ avoidEscape: { type: "boolean" } })];
|
|
796
|
+
case "vue/mustache-interpolation-spacing": return [{ enum: ["always", "never"] }];
|
|
776
797
|
case "vue/v-on-event-hyphenation":
|
|
777
798
|
case "vue/attribute-hyphenation": return [{ enum: ["always", "never"] }];
|
|
778
799
|
case "vue/v-on-style": return [{ enum: ["shorthand", "longform"] }];
|
|
@@ -54,6 +54,8 @@ interface VizeRuleOptions {
|
|
|
54
54
|
};
|
|
55
55
|
"vue/sfc-element-order"?: SfcElementOrderOption;
|
|
56
56
|
"vue/html-self-closing"?: HtmlSelfClosingOption;
|
|
57
|
+
"vue/html-quotes"?: HtmlQuotesConfig;
|
|
58
|
+
"vue/mustache-interpolation-spacing"?: MustacheInterpolationSpacingStyle;
|
|
57
59
|
"vue/v-on-event-hyphenation"?: HyphenationStyle;
|
|
58
60
|
"vue/v-bind-style"?: VBindStyle;
|
|
59
61
|
"vue/v-on-style"?: VOnStyle;
|
|
@@ -92,6 +94,12 @@ interface HtmlSelfClosingOption {
|
|
|
92
94
|
svg?: HtmlSelfClosingStyle;
|
|
93
95
|
math?: HtmlSelfClosingStyle;
|
|
94
96
|
}
|
|
97
|
+
type HtmlQuoteStyle = "double" | "single";
|
|
98
|
+
type HtmlQuotesConfig = HtmlQuoteStyle | {
|
|
99
|
+
style?: HtmlQuoteStyle;
|
|
100
|
+
avoidEscape?: boolean;
|
|
101
|
+
};
|
|
102
|
+
type MustacheInterpolationSpacingStyle = "always" | "never";
|
|
95
103
|
type HyphenationStyle = "always" | "never";
|
|
96
104
|
type VBindStyle = "shorthand" | "longform";
|
|
97
105
|
type VOnStyle = "shorthand" | "longform";
|
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-CF63Ev5C.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-C0vMZu6T.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-CF63Ev5C.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-C0vMZu6T.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.531.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.531.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.531.0",
|
|
59
|
+
"@vizejs/native-darwin-x64": "0.531.0",
|
|
60
|
+
"@vizejs/native-linux-arm64-gnu": "0.531.0",
|
|
61
|
+
"@vizejs/native-linux-arm64-musl": "0.531.0",
|
|
62
|
+
"@vizejs/native-linux-x64-gnu": "0.531.0",
|
|
63
|
+
"@vizejs/native-linux-x64-musl": "0.531.0",
|
|
64
|
+
"@vizejs/native-win32-arm64-msvc": "0.531.0",
|
|
65
|
+
"@vizejs/native-win32-x64-msvc": "0.531.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "^22 || >= 24"
|