oxlint-plugin-vize 0.315.1 → 0.321.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/README.md +1 -1
- package/dist/index.d.mts +8 -5
- package/dist/index.mjs +3 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -169,7 +169,7 @@ You can pass Patina settings through `settings.vize`:
|
|
|
169
169
|
- `"ecosystem"` enables Vize's Vue Router, Vue I18n, Pinia, Vue Test Utils, Nuxt, and Void Vue rules without taking on the full opinionated preset.
|
|
170
170
|
- `"opinionated"` is the preset that enables Vize's built-in script rules such as `vize/script/no-options-api`.
|
|
171
171
|
- Legacy aliases such as `"GeneralRecommended"`, `"Essential"`, `"Ecosystem"`, `"Incremental"`, `"Opinionated"`, `"Nuxt"`, and `"happy-path"` are still accepted for compatibility.
|
|
172
|
-
- `helpLevel` accepts `"full"`, `"short"`, or `"none"`.
|
|
172
|
+
- `helpLevel` accepts `"full"`, `"short"`, or `"none"`. Short help keeps one actionable sentence and removes inline examples and trailing rationale.
|
|
173
173
|
- `helpLevel: "full"` only expands the Patina remediation text. It does not restore original-SFC formatter anchors or machine-readable range fidelity.
|
|
174
174
|
- `typeAware: true` enables Corsa-backed `vize/type/*` rules during shared Patina passes.
|
|
175
175
|
- `corsaPath` selects the Corsa or `tsgo` executable for type-aware linting. Omit it to use Vize's normal resolver.
|
package/dist/index.d.mts
CHANGED
|
@@ -15,8 +15,9 @@ interface PatinaSettings {
|
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/configs.d.ts
|
|
18
|
-
type OxlintRuleSeverity = "error" | "warn";
|
|
19
|
-
type
|
|
18
|
+
type OxlintRuleSeverity = "error" | "warn" | "off";
|
|
19
|
+
type OxlintRuleEntry = OxlintRuleSeverity | [OxlintRuleSeverity, ...unknown[]];
|
|
20
|
+
type OxlintRuleConfig = Record<string, OxlintRuleEntry>;
|
|
20
21
|
type VizeRuleConfigPreset = Exclude<PatinaPreset, "incremental"> | "all";
|
|
21
22
|
interface VizeRuleConfigOptions {
|
|
22
23
|
includeTypeAware?: boolean;
|
|
@@ -43,6 +44,8 @@ declare const configs: {
|
|
|
43
44
|
* in `vite.config.ts` and in a hand-written `.oxlintrc.json`.
|
|
44
45
|
*/
|
|
45
46
|
declare const VIZE_JS_PLUGIN_SPECIFIER = "oxlint-plugin-vize";
|
|
47
|
+
/** Built-in plugin names accepted by Vite+'s Oxlint configuration. */
|
|
48
|
+
type VitePlusLintPlugin = "eslint" | "import" | "jest" | "jsdoc" | "jsx-a11y" | "nextjs" | "node" | "oxc" | "promise" | "react" | "react-perf" | "typescript" | "unicorn" | "vitest" | "vue";
|
|
46
49
|
/**
|
|
47
50
|
* Rule bundles `createVizeLintConfig` accepts.
|
|
48
51
|
*
|
|
@@ -65,7 +68,7 @@ interface VizeLintConfigOptions {
|
|
|
65
68
|
* here is merged rather than replaced. A `create-vue` project, for example,
|
|
66
69
|
* needs `["eslint", "typescript", "unicorn", "oxc"]` carried over.
|
|
67
70
|
*/
|
|
68
|
-
plugins?: readonly
|
|
71
|
+
plugins?: readonly VitePlusLintPlugin[];
|
|
69
72
|
/**
|
|
70
73
|
* Rule bundle to enable. Defaults to `"general-recommended"`, the bridge's own
|
|
71
74
|
* default. `"incremental"` emits no preset rules, so only `rules` run.
|
|
@@ -86,7 +89,7 @@ interface VizeLintConfigOptions {
|
|
|
86
89
|
}
|
|
87
90
|
interface VizeLintConfig {
|
|
88
91
|
jsPlugins: string[];
|
|
89
|
-
plugins:
|
|
92
|
+
plugins: VitePlusLintPlugin[];
|
|
90
93
|
rules: OxlintRuleConfig;
|
|
91
94
|
settings: {
|
|
92
95
|
vize: PatinaSettings;
|
|
@@ -128,4 +131,4 @@ interface VizeLintConfig {
|
|
|
128
131
|
*/
|
|
129
132
|
declare function createVizeLintConfig(options?: VizeLintConfigOptions): VizeLintConfig;
|
|
130
133
|
//#endregion
|
|
131
|
-
export { type OxlintRuleConfig, type OxlintRuleSeverity, VIZE_JS_PLUGIN_SPECIFIER, type VizeLintConfig, type VizeLintConfigOptions, type VizeLintPreset, type VizeRuleConfigOptions, configs, createVizeLintConfig, createVizeRuleConfig, _default as default };
|
|
134
|
+
export { type OxlintRuleConfig, type OxlintRuleEntry, type OxlintRuleSeverity, VIZE_JS_PLUGIN_SPECIFIER, type VitePlusLintPlugin, type VizeLintConfig, type VizeLintConfigOptions, type VizeLintPreset, type VizeRuleConfigOptions, configs, createVizeLintConfig, createVizeRuleConfig, _default as default };
|
package/dist/index.mjs
CHANGED
|
@@ -629,7 +629,9 @@ if (import.meta.vitest) {
|
|
|
629
629
|
});
|
|
630
630
|
it("keeps ecosystem rules out of non-ecosystem presets until explicitly selected", () => {
|
|
631
631
|
expect(configs.recommended["vize/ecosystem/router-link-require-to"]).toBeUndefined();
|
|
632
|
-
expect(configs.nuxt["vize/ecosystem/nuxt-prefer-nuxt-link"]).
|
|
632
|
+
expect(configs.nuxt["vize/ecosystem/nuxt-prefer-nuxt-link"]).toBe("warn");
|
|
633
|
+
expect(configs.ecosystem["vize/ecosystem/nuxt-prefer-nuxt-link"]).toBeUndefined();
|
|
634
|
+
expect(configs.all["vize/ecosystem/nuxt-prefer-nuxt-link"]).toBe("warn");
|
|
633
635
|
expect(configs.ecosystem["vize/ecosystem/router-link-require-to"]).toBe("error");
|
|
634
636
|
expect(configs.ecosystem["vize/ecosystem/vue-i18n-no-missing-key"]).toBe("warn");
|
|
635
637
|
expect(configs.ecosystem["vize/ecosystem/void-link-require-href"]).toBe("error");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.321.0",
|
|
4
4
|
"description": "Oxlint JS plugin bridge for Vize Patina",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tsdown/css": "0.22.0",
|
|
46
46
|
"@types/node": "25.9.2",
|
|
47
|
-
"@vizejs/native": "0.
|
|
47
|
+
"@vizejs/native": "0.321.0",
|
|
48
48
|
"tsdown": "0.22.0",
|
|
49
49
|
"typescript": "6.0.3",
|
|
50
50
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.21",
|
|
51
51
|
"vite-plus": "0.1.21"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@vizejs/native-darwin-arm64": "0.
|
|
55
|
-
"@vizejs/native-darwin-x64": "0.
|
|
56
|
-
"@vizejs/native-linux-arm64-gnu": "0.
|
|
57
|
-
"@vizejs/native-linux-arm64-musl": "0.
|
|
58
|
-
"@vizejs/native-linux-x64-gnu": "0.
|
|
59
|
-
"@vizejs/native-linux-x64-musl": "0.
|
|
60
|
-
"@vizejs/native-win32-arm64-msvc": "0.
|
|
61
|
-
"@vizejs/native-win32-x64-msvc": "0.
|
|
54
|
+
"@vizejs/native-darwin-arm64": "0.321.0",
|
|
55
|
+
"@vizejs/native-darwin-x64": "0.321.0",
|
|
56
|
+
"@vizejs/native-linux-arm64-gnu": "0.321.0",
|
|
57
|
+
"@vizejs/native-linux-arm64-musl": "0.321.0",
|
|
58
|
+
"@vizejs/native-linux-x64-gnu": "0.321.0",
|
|
59
|
+
"@vizejs/native-linux-x64-musl": "0.321.0",
|
|
60
|
+
"@vizejs/native-win32-arm64-msvc": "0.321.0",
|
|
61
|
+
"@vizejs/native-win32-x64-msvc": "0.321.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": "^22 || >= 24"
|