@weapp-vite/eslint 0.2.3 → 0.2.5
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 +11 -11
- package/package.json +11 -6
package/dist/index.d.mts
CHANGED
|
@@ -24,8 +24,8 @@ interface WevuCompatibilityEntry {
|
|
|
24
24
|
*
|
|
25
25
|
* Website、ESLint 规则和兼容审计应消费此清单,避免各自维护状态。
|
|
26
26
|
*/
|
|
27
|
-
declare const wevuCompatibilityCatalog: readonly WevuCompatibilityEntry[];
|
|
28
|
-
declare function findWevuCompatibilityEntry(upstream: WevuCompatibilityUpstream, api: string, surface?: WevuCompatibilitySurface): WevuCompatibilityEntry | undefined;
|
|
27
|
+
export declare const wevuCompatibilityCatalog: readonly WevuCompatibilityEntry[];
|
|
28
|
+
export declare function findWevuCompatibilityEntry(upstream: WevuCompatibilityUpstream, api: string, surface?: WevuCompatibilitySurface): WevuCompatibilityEntry | undefined;
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/miniProgramRuntime.d.ts
|
|
31
31
|
type MiniProgramRuntimeApiDiagnostic = 'off' | 'warn' | 'error';
|
|
@@ -46,8 +46,8 @@ interface MiniProgramRuntimeApiEntry {
|
|
|
46
46
|
* baseline 表示兼容基线可直接使用;polyfill-required 表示必须显式启用或调用
|
|
47
47
|
* weapp-vite 兼容层;unsupported 表示业务运行时代码不应依赖该能力。
|
|
48
48
|
*/
|
|
49
|
-
declare const miniProgramRuntimeApiCatalog: readonly MiniProgramRuntimeApiEntry[];
|
|
50
|
-
declare const miniProgramRuntimePlugin: {
|
|
49
|
+
export declare const miniProgramRuntimeApiCatalog: readonly MiniProgramRuntimeApiEntry[];
|
|
50
|
+
export declare const miniProgramRuntimePlugin: {
|
|
51
51
|
meta: {
|
|
52
52
|
name: string;
|
|
53
53
|
version: string;
|
|
@@ -61,13 +61,13 @@ interface MiniProgramRuntimeConfigOptions {
|
|
|
61
61
|
files?: string[];
|
|
62
62
|
ignores?: string[];
|
|
63
63
|
}
|
|
64
|
-
declare const MINI_PROGRAM_RUNTIME_DEFAULT_FILES: string[];
|
|
65
|
-
declare const MINI_PROGRAM_RUNTIME_DEFAULT_IGNORES: string[];
|
|
66
|
-
declare function createMiniProgramRuntimeConfig(options?: MiniProgramRuntimeConfigOptions): Linter.Config;
|
|
67
|
-
declare const miniProgramRuntimeRecommended: Linter.Config;
|
|
64
|
+
export declare const MINI_PROGRAM_RUNTIME_DEFAULT_FILES: string[];
|
|
65
|
+
export declare const MINI_PROGRAM_RUNTIME_DEFAULT_IGNORES: string[];
|
|
66
|
+
export declare function createMiniProgramRuntimeConfig(options?: MiniProgramRuntimeConfigOptions): Linter.Config;
|
|
67
|
+
export declare const miniProgramRuntimeRecommended: Linter.Config;
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/index.d.ts
|
|
70
|
-
declare const wevuCompatibilityPlugin: {
|
|
70
|
+
export declare const wevuCompatibilityPlugin: {
|
|
71
71
|
meta: {
|
|
72
72
|
name: string;
|
|
73
73
|
version: string;
|
|
@@ -78,6 +78,6 @@ declare const wevuCompatibilityPlugin: {
|
|
|
78
78
|
'no-unsupported-template-feature': Rule.RuleModule;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
-
declare const wevuCompatibilityRecommended: Linter.Config;
|
|
81
|
+
export declare const wevuCompatibilityRecommended: Linter.Config;
|
|
82
82
|
//#endregion
|
|
83
|
-
export {
|
|
83
|
+
export type { MiniProgramRuntimeApiDiagnostic, MiniProgramRuntimeApiEntry, MiniProgramRuntimeApiKind, MiniProgramRuntimeApiSupport, MiniProgramRuntimeConfigOptions, WevuCompatibilityDiagnostic, WevuCompatibilityEntry, WevuCompatibilityLevel, WevuCompatibilitySurface, WevuCompatibilityUpstream };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"description": "Wevu compatibility ESLint plugin and recommended configuration",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://github.com/weapp-vite/weapp-vite#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/weapp-vite/weapp-vite.git",
|
|
@@ -15,12 +15,17 @@
|
|
|
15
15
|
"url": "https://github.com/weapp-vite/weapp-vite/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
|
+
"weapp-vite",
|
|
19
|
+
"weapp",
|
|
20
|
+
"wechat",
|
|
21
|
+
"mini-program",
|
|
22
|
+
"miniprogram",
|
|
18
23
|
"eslint",
|
|
19
24
|
"wevu",
|
|
20
25
|
"vue",
|
|
21
26
|
"pinia",
|
|
22
27
|
"vue-router",
|
|
23
|
-
"
|
|
28
|
+
"vite"
|
|
24
29
|
],
|
|
25
30
|
"sideEffects": false,
|
|
26
31
|
"exports": {
|
|
@@ -52,10 +57,10 @@
|
|
|
52
57
|
}
|
|
53
58
|
},
|
|
54
59
|
"devDependencies": {
|
|
55
|
-
"@typescript-eslint/parser": "^8.
|
|
56
|
-
"eslint": "^10.
|
|
60
|
+
"@typescript-eslint/parser": "^8.70.0",
|
|
61
|
+
"eslint": "^10.10.0",
|
|
57
62
|
"typescript": "^6.0.3",
|
|
58
|
-
"vitest": "^
|
|
63
|
+
"vitest": "^5.0.1",
|
|
59
64
|
"vue-eslint-parser": "^10.4.1"
|
|
60
65
|
},
|
|
61
66
|
"scripts": {
|