@weapp-vite/eslint 0.2.10 → 0.3.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.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Linter, Rule } from "eslint";
2
- //#region src/compatibility.d.ts
3
2
  type WevuCompatibilityLevel = 'supported' | 'supported-with-differences' | 'experimental' | 'unsupported';
4
3
  type WevuCompatibilityDiagnostic = 'off' | 'warn' | 'error';
5
4
  type WevuCompatibilitySurface = 'runtime' | 'template' | 'sfc-style' | 'type';
@@ -26,8 +25,6 @@ interface WevuCompatibilityEntry {
26
25
  */
27
26
  export declare const wevuCompatibilityCatalog: readonly WevuCompatibilityEntry[];
28
27
  export declare function findWevuCompatibilityEntry(upstream: WevuCompatibilityUpstream, api: string, surface?: WevuCompatibilitySurface): WevuCompatibilityEntry | undefined;
29
- //#endregion
30
- //#region src/miniProgramRuntime.d.ts
31
28
  type MiniProgramRuntimeApiDiagnostic = 'off' | 'warn' | 'error';
32
29
  type MiniProgramRuntimeApiKind = 'global' | 'static-method' | 'instance-method';
33
30
  type MiniProgramRuntimeApiSupport = 'baseline' | 'polyfill-required' | 'unsupported';
@@ -65,8 +62,6 @@ export declare const MINI_PROGRAM_RUNTIME_DEFAULT_FILES: string[];
65
62
  export declare const MINI_PROGRAM_RUNTIME_DEFAULT_IGNORES: string[];
66
63
  export declare function createMiniProgramRuntimeConfig(options?: MiniProgramRuntimeConfigOptions): Linter.Config;
67
64
  export declare const miniProgramRuntimeRecommended: Linter.Config;
68
- //#endregion
69
- //#region src/index.d.ts
70
65
  export declare const wevuCompatibilityPlugin: {
71
66
  meta: {
72
67
  name: string;
@@ -79,5 +74,4 @@ export declare const wevuCompatibilityPlugin: {
79
74
  };
80
75
  };
81
76
  export declare const wevuCompatibilityRecommended: Linter.Config;
82
- //#endregion
83
77
  export type { MiniProgramRuntimeApiDiagnostic, MiniProgramRuntimeApiEntry, MiniProgramRuntimeApiKind, MiniProgramRuntimeApiSupport, MiniProgramRuntimeConfigOptions, WevuCompatibilityDiagnostic, WevuCompatibilityEntry, WevuCompatibilityLevel, WevuCompatibilitySurface, WevuCompatibilityUpstream };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/compatibility.ts
1
+ // src/compatibility.ts
2
2
  const entry$1 = (value) => value;
3
3
  /**
4
4
  * Wevu 与 Vue 生态的公开兼容真值。
@@ -268,8 +268,7 @@ const wevuCompatibilityCatalog = [
268
268
  function findWevuCompatibilityEntry(upstream, api, surface) {
269
269
  return wevuCompatibilityCatalog.find((item) => item.upstream === upstream && item.api === api && (!surface || item.surfaces.includes(surface)));
270
270
  }
271
- //#endregion
272
- //#region src/runtimeReceiver.ts
271
+ // src/runtimeReceiver.ts
273
272
  /** 只在接收者有静态证据时选择实例规则;同名业务方法和未知值不归因于内建 API。 */
274
273
  function resolveBuiltinReceiver(context, node, seen = /* @__PURE__ */ new Set()) {
275
274
  if (!node || seen.has(node)) return;
@@ -300,8 +299,7 @@ function resolveBuiltinReceiver(context, node, seen = /* @__PURE__ */ new Set())
300
299
  scope = scope.upper;
301
300
  }
302
301
  }
303
- //#endregion
304
- //#region src/miniProgramRuntime.ts
302
+ // src/miniProgramRuntime.ts
305
303
  const entry = (value) => value;
306
304
  /**
307
305
  * 微信小程序 AppService 运行时能力清单。
@@ -524,8 +522,7 @@ function createMiniProgramRuntimeConfig(options = {}) {
524
522
  };
525
523
  }
526
524
  const miniProgramRuntimeRecommended = createMiniProgramRuntimeConfig();
527
- //#endregion
528
- //#region src/index.ts
525
+ // src/index.ts
529
526
  const SOURCE_TO_UPSTREAM = {
530
527
  "vue": "vue",
531
528
  "pinia": "pinia",
@@ -639,5 +636,4 @@ const wevuCompatibilityRecommended = {
639
636
  "wevu/no-unsupported-template-feature": "error"
640
637
  }
641
638
  };
642
- //#endregion
643
639
  export { MINI_PROGRAM_RUNTIME_DEFAULT_FILES, MINI_PROGRAM_RUNTIME_DEFAULT_IGNORES, createMiniProgramRuntimeConfig, findWevuCompatibilityEntry, miniProgramRuntimeApiCatalog, miniProgramRuntimePlugin, miniProgramRuntimeRecommended, wevuCompatibilityCatalog, wevuCompatibilityPlugin, wevuCompatibilityRecommended };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-vite/eslint",
3
3
  "type": "module",
4
- "version": "0.2.10",
4
+ "version": "0.3.0",
5
5
  "description": "Wevu compatibility ESLint plugin and recommended configuration",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "dist"
43
43
  ],
44
44
  "engines": {
45
- "node": "^20.19.0 || >=22.12.0"
45
+ "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public",
@@ -57,10 +57,10 @@
57
57
  }
58
58
  },
59
59
  "devDependencies": {
60
- "@typescript-eslint/parser": "^8.71.1",
61
- "eslint": "^10.12.0",
60
+ "@typescript-eslint/parser": "^8.72.0",
61
+ "eslint": "^10.13.0",
62
62
  "typescript": "^6.0.3",
63
- "vitest": "^5.0.3",
63
+ "vitest": "^5.0.5",
64
64
  "vue-eslint-parser": "^10.4.1"
65
65
  },
66
66
  "scripts": {