oxlint-plugin-vize 0.91.0 → 0.94.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/index.mjs +6 -1
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -411,7 +411,7 @@ function createPatinaRule(ruleMeta) {
|
|
|
411
411
|
if (!isVueLikeFile(context.filename)) return;
|
|
412
412
|
const settings = getVizeSettings(context);
|
|
413
413
|
const activePreset = getActivePreset(settings);
|
|
414
|
-
if (!isIncrementalPreset(settings) && !ruleMeta.presets.includes(activePreset)) return;
|
|
414
|
+
if (ruleMeta.presets.length > 0 && !isIncrementalPreset(settings) && !ruleMeta.presets.includes(activePreset)) return;
|
|
415
415
|
const helpLevel = settings.helpLevel ?? "full";
|
|
416
416
|
const state = getFileState(context);
|
|
417
417
|
const diagnostics = getDiagnosticsForRule(context, state, ruleMeta.name);
|
|
@@ -478,6 +478,11 @@ if (import.meta.vitest) {
|
|
|
478
478
|
expect(configs.opinionated["vize/type/require-typed-props"]).toBeUndefined();
|
|
479
479
|
expect(configs.opinionatedWithTypeAware["vize/type/require-typed-props"]).toBe("warn");
|
|
480
480
|
});
|
|
481
|
+
it("keeps ecosystem rules out of named presets until explicitly selected", () => {
|
|
482
|
+
expect(configs.recommended["vize/ecosystem/router-link-require-to"]).toBeUndefined();
|
|
483
|
+
expect(configs.nuxt["vize/ecosystem/nuxt-prefer-nuxt-link"]).toBeUndefined();
|
|
484
|
+
expect(configs.all["vize/ecosystem/router-link-require-to"]).toBe("error");
|
|
485
|
+
});
|
|
481
486
|
});
|
|
482
487
|
}
|
|
483
488
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.94.0",
|
|
4
4
|
"description": "Oxlint JS plugin bridge for Vize Patina",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tsdown/css": "0.22.0",
|
|
42
42
|
"@types/node": "25.7.0",
|
|
43
|
-
"@vizejs/native": "0.
|
|
43
|
+
"@vizejs/native": "0.94.0",
|
|
44
44
|
"tsdown": "0.22.0",
|
|
45
45
|
"typescript": "6.0.3",
|
|
46
46
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.21",
|
|
47
47
|
"vite-plus": "0.1.21"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@vizejs/native-darwin-arm64": "0.
|
|
51
|
-
"@vizejs/native-darwin-x64": "0.
|
|
52
|
-
"@vizejs/native-linux-arm64-gnu": "0.
|
|
53
|
-
"@vizejs/native-linux-arm64-musl": "0.
|
|
54
|
-
"@vizejs/native-linux-x64-gnu": "0.
|
|
55
|
-
"@vizejs/native-linux-x64-musl": "0.
|
|
56
|
-
"@vizejs/native-win32-arm64-msvc": "0.
|
|
57
|
-
"@vizejs/native-win32-x64-msvc": "0.
|
|
50
|
+
"@vizejs/native-darwin-arm64": "0.94.0",
|
|
51
|
+
"@vizejs/native-darwin-x64": "0.94.0",
|
|
52
|
+
"@vizejs/native-linux-arm64-gnu": "0.94.0",
|
|
53
|
+
"@vizejs/native-linux-arm64-musl": "0.94.0",
|
|
54
|
+
"@vizejs/native-linux-x64-gnu": "0.94.0",
|
|
55
|
+
"@vizejs/native-linux-x64-musl": "0.94.0",
|
|
56
|
+
"@vizejs/native-win32-arm64-msvc": "0.94.0",
|
|
57
|
+
"@vizejs/native-win32-x64-msvc": "0.94.0"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=24"
|