oxlint-plugin-vize 0.514.0 → 0.516.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.
|
@@ -55,6 +55,7 @@ interface VizeRuleOptions {
|
|
|
55
55
|
"vue/sfc-element-order"?: SfcElementOrderOption;
|
|
56
56
|
"vue/html-self-closing"?: HtmlSelfClosingOption;
|
|
57
57
|
"vue/v-on-event-hyphenation"?: HyphenationStyle;
|
|
58
|
+
"vue/v-on-style"?: VOnStyle;
|
|
58
59
|
"vue/attribute-hyphenation"?: HyphenationStyle;
|
|
59
60
|
"vue/valid-v-on"?: {
|
|
60
61
|
modifiers?: string[];
|
|
@@ -90,6 +91,7 @@ interface HtmlSelfClosingOption {
|
|
|
90
91
|
math?: HtmlSelfClosingStyle;
|
|
91
92
|
}
|
|
92
93
|
type HyphenationStyle = "always" | "never";
|
|
94
|
+
type VOnStyle = "shorthand" | "longform";
|
|
93
95
|
//#endregion
|
|
94
96
|
//#region src/configs.d.ts
|
|
95
97
|
type OxlintRuleSeverity = "error" | "warn" | "off";
|
|
@@ -47,6 +47,9 @@ function getRuleOptions(ruleName, options) {
|
|
|
47
47
|
case "vue/v-on-event-hyphenation":
|
|
48
48
|
if (isHyphenationStyle(firstOption)) return { vOnEventHyphenation: firstOption };
|
|
49
49
|
break;
|
|
50
|
+
case "vue/v-on-style":
|
|
51
|
+
if (isVOnStyle(firstOption)) return { ruleOptions: { "vue/v-on-style": firstOption } };
|
|
52
|
+
break;
|
|
50
53
|
case "vue/attribute-hyphenation":
|
|
51
54
|
if (isHyphenationStyle(firstOption)) return { attributeHyphenation: firstOption };
|
|
52
55
|
break;
|
|
@@ -103,6 +106,9 @@ function isHtmlSelfClosingOption(value) {
|
|
|
103
106
|
function isHyphenationStyle(value) {
|
|
104
107
|
return value === "always" || value === "never";
|
|
105
108
|
}
|
|
109
|
+
function isVOnStyle(value) {
|
|
110
|
+
return value === "shorthand" || value === "longform";
|
|
111
|
+
}
|
|
106
112
|
//#endregion
|
|
107
113
|
//#region src/rule-selection.ts
|
|
108
114
|
const selectionCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -750,6 +756,7 @@ function ruleOptionsSchema(ruleName) {
|
|
|
750
756
|
case "vue/html-self-closing": return [htmlSelfClosingSchema()];
|
|
751
757
|
case "vue/v-on-event-hyphenation":
|
|
752
758
|
case "vue/attribute-hyphenation": return [{ enum: ["always", "never"] }];
|
|
759
|
+
case "vue/v-on-style": return [{ enum: ["shorthand", "longform"] }];
|
|
753
760
|
case "vue/require-component-registration": return [objectSchema({ globals: stringArraySchema() })];
|
|
754
761
|
case "vue/valid-v-on": return [objectSchema({ modifiers: stringArraySchema() })];
|
|
755
762
|
case "vue/valid-v-slot": return [objectSchema({ allowModifiers: { type: "boolean" } })];
|
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-BJRr71C8.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-D__9a7iT.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-BJRr71C8.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-D__9a7iT.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.516.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.516.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.516.0",
|
|
59
|
+
"@vizejs/native-darwin-x64": "0.516.0",
|
|
60
|
+
"@vizejs/native-linux-arm64-gnu": "0.516.0",
|
|
61
|
+
"@vizejs/native-linux-arm64-musl": "0.516.0",
|
|
62
|
+
"@vizejs/native-linux-x64-gnu": "0.516.0",
|
|
63
|
+
"@vizejs/native-linux-x64-musl": "0.516.0",
|
|
64
|
+
"@vizejs/native-win32-arm64-msvc": "0.516.0",
|
|
65
|
+
"@vizejs/native-win32-x64-msvc": "0.516.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "^22 || >= 24"
|