From 7beadc91a4ef0df803e63762c4b20e6fb9de524f Mon Sep 17 00:00:00 2001 From: Rui Wu Date: Wed, 15 May 2024 19:02:48 +0800 Subject: [PATCH] chore: lint --- src/ad/ad-content-page.ts | 1 - src/ad/ad-draw.ts | 1 - src/ad/ad-fullscreen-video.ts | 1 - src/ad/ad-interactive.ts | 2 +- src/ad/ad-interstitial.ts | 1 - src/ad/ad-rewarded-video.ts | 1 - src/ad/ad.ts | 1 - src/basic-components/icon.ts | 1 - src/basic-components/progress.ts | 1 - src/basic-components/rich-text.ts | 1 - src/basic-components/text.ts | 1 - src/canvas/index.ts | 2 +- src/form-components/button.ts | 1 - src/form-components/checkbox-group.ts | 1 - src/form-components/checkbox.ts | 1 - src/form-components/editor.ts | 1 - src/form-components/form.ts | 1 - src/form-components/input.ts | 1 - src/form-components/label.ts | 1 - src/form-components/picker-view-column.ts | 1 - src/form-components/picker-view.ts | 1 - src/form-components/picker.ts | 1 - src/form-components/radio-group.ts | 1 - src/form-components/radio.ts | 1 - src/form-components/slider.ts | 1 - src/form-components/switch.ts | 1 - src/form-components/textarea.ts | 1 - src/map/index.ts | 1 - src/media-components/audio.ts | 1 - src/media-components/camera.ts | 1 - src/media-components/image.ts | 1 - src/media-components/live-player.ts | 1 - src/media-components/live-pusher.ts | 1 - src/media-components/video.ts | 1 - src/navigation/navigator.ts | 1 - src/page-property-configuration-node/custom-tab-bar.ts | 1 - src/page-property-configuration-node/navigation-bar.ts | 1 - src/page-property-configuration-node/page-meta.ts | 1 - src/view-containers/cover-image.ts | 1 - src/view-containers/cover-view.ts | 1 - src/view-containers/match-media.ts | 1 - src/view-containers/movable-area.ts | 1 - src/view-containers/movable-view.ts | 1 - src/view-containers/scroll-view.ts | 1 - src/view-containers/swiper-item.ts | 1 - src/view-containers/swiper.ts | 1 - src/view-containers/view.ts | 1 - src/web-view/index.ts | 1 - 48 files changed, 2 insertions(+), 48 deletions(-) diff --git a/src/ad/ad-content-page.ts b/src/ad/ad-content-page.ts index 4e6f000..980b960 100644 --- a/src/ad/ad-content-page.ts +++ b/src/ad/ad-content-page.ts @@ -221,7 +221,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 短视频内容联盟广告 */ diff --git a/src/ad/ad-draw.ts b/src/ad/ad-draw.ts index efb44a8..6425cbb 100644 --- a/src/ad/ad-draw.ts +++ b/src/ad/ad-draw.ts @@ -69,7 +69,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 沉浸视频流广告 */ diff --git a/src/ad/ad-fullscreen-video.ts b/src/ad/ad-fullscreen-video.ts index 11beca8..5b1aa4d 100644 --- a/src/ad/ad-fullscreen-video.ts +++ b/src/ad/ad-fullscreen-video.ts @@ -97,7 +97,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 全屏视频广告 */ diff --git a/src/ad/ad-interactive.ts b/src/ad/ad-interactive.ts index 3273cf1..75f49aa 100644 --- a/src/ad/ad-interactive.ts +++ b/src/ad/ad-interactive.ts @@ -15,6 +15,7 @@ interface _AdInteractiveOnErrorDetail { errMsg: string; } +// eslint-disable-next-line n/no-unsupported-features/node-builtins type _AdInteractiveOnErrorEvent = CustomEvent<_AdInteractiveOnErrorDetail>; /** 广告加载失败的回调 */ @@ -70,7 +71,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 互动广告 */ diff --git a/src/ad/ad-interstitial.ts b/src/ad/ad-interstitial.ts index 3c0b095..6979542 100644 --- a/src/ad/ad-interstitial.ts +++ b/src/ad/ad-interstitial.ts @@ -94,7 +94,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 插屏广告 */ diff --git a/src/ad/ad-rewarded-video.ts b/src/ad/ad-rewarded-video.ts index 2c73c89..86aa44c 100644 --- a/src/ad/ad-rewarded-video.ts +++ b/src/ad/ad-rewarded-video.ts @@ -106,7 +106,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 激励视频广告 */ diff --git a/src/ad/ad.ts b/src/ad/ad.ts index f498f03..d9f1eed 100644 --- a/src/ad/ad.ts +++ b/src/ad/ad.ts @@ -125,7 +125,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 信息流广告 */ diff --git a/src/basic-components/icon.ts b/src/basic-components/icon.ts index b99abb0..4809885 100644 --- a/src/basic-components/icon.ts +++ b/src/basic-components/icon.ts @@ -39,7 +39,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 图标 */ diff --git a/src/basic-components/progress.ts b/src/basic-components/progress.ts index f7c776d..e3e3a70 100644 --- a/src/basic-components/progress.ts +++ b/src/basic-components/progress.ts @@ -130,7 +130,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 进度条 */ diff --git a/src/basic-components/rich-text.ts b/src/basic-components/rich-text.ts index 42f35aa..a26eb77 100644 --- a/src/basic-components/rich-text.ts +++ b/src/basic-components/rich-text.ts @@ -110,7 +110,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 富文本 */ diff --git a/src/basic-components/text.ts b/src/basic-components/text.ts index 6e1fe39..7d8697b 100644 --- a/src/basic-components/text.ts +++ b/src/basic-components/text.ts @@ -87,7 +87,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/canvas/index.ts b/src/canvas/index.ts index a17c564..32215bc 100644 --- a/src/canvas/index.ts +++ b/src/canvas/index.ts @@ -44,6 +44,7 @@ interface _CanvasOnErrorDetail { errMsg: string; } +// eslint-disable-next-line n/no-unsupported-features/node-builtins type _CanvasOnErrorEvent = CustomEvent<_CanvasOnErrorDetail>; /** 发生错误时触发 */ @@ -141,7 +142,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 画布 */ diff --git a/src/form-components/button.ts b/src/form-components/button.ts index e10ad99..1593138 100644 --- a/src/form-components/button.ts +++ b/src/form-components/button.ts @@ -772,7 +772,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 按钮 */ diff --git a/src/form-components/checkbox-group.ts b/src/form-components/checkbox-group.ts index f3c89ca..3a99d09 100644 --- a/src/form-components/checkbox-group.ts +++ b/src/form-components/checkbox-group.ts @@ -50,7 +50,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 多项选择器,内部由多个 checkbox 组成 */ diff --git a/src/form-components/checkbox.ts b/src/form-components/checkbox.ts index ff0da43..4908bfd 100644 --- a/src/form-components/checkbox.ts +++ b/src/form-components/checkbox.ts @@ -63,7 +63,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 多选项目 */ diff --git a/src/form-components/editor.ts b/src/form-components/editor.ts index 98d7b6d..01e4463 100644 --- a/src/form-components/editor.ts +++ b/src/form-components/editor.ts @@ -165,7 +165,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/form-components/form.ts b/src/form-components/form.ts index 0d7ab6d..1b892d8 100644 --- a/src/form-components/form.ts +++ b/src/form-components/form.ts @@ -113,7 +113,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/form-components/input.ts b/src/form-components/input.ts index a50206d..6d1ede1 100644 --- a/src/form-components/input.ts +++ b/src/form-components/input.ts @@ -498,7 +498,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 输入框 */ diff --git a/src/form-components/label.ts b/src/form-components/label.ts index fda005b..2b22eab 100644 --- a/src/form-components/label.ts +++ b/src/form-components/label.ts @@ -45,7 +45,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/form-components/picker-view-column.ts b/src/form-components/picker-view-column.ts index aa541c4..b969f7f 100644 --- a/src/form-components/picker-view-column.ts +++ b/src/form-components/picker-view-column.ts @@ -21,7 +21,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { PickerViewColumn: _PickerViewColumn; diff --git a/src/form-components/picker-view.ts b/src/form-components/picker-view.ts index 5c16b8f..d209fd3 100644 --- a/src/form-components/picker-view.ts +++ b/src/form-components/picker-view.ts @@ -107,7 +107,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 嵌入页面的滚动选择器,比 picker 更灵活 */ diff --git a/src/form-components/picker.ts b/src/form-components/picker.ts index aac9147..8f882f4 100644 --- a/src/form-components/picker.ts +++ b/src/form-components/picker.ts @@ -554,7 +554,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 从底部弹起的滚动选择器,通过 mode 来区分 */ diff --git a/src/form-components/radio-group.ts b/src/form-components/radio-group.ts index 216597e..c2a5689 100644 --- a/src/form-components/radio-group.ts +++ b/src/form-components/radio-group.ts @@ -58,7 +58,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/form-components/radio.ts b/src/form-components/radio.ts index 791bff9..2c8eb96 100644 --- a/src/form-components/radio.ts +++ b/src/form-components/radio.ts @@ -63,7 +63,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 单选项目 */ diff --git a/src/form-components/slider.ts b/src/form-components/slider.ts index 85f8b82..27cb083 100644 --- a/src/form-components/slider.ts +++ b/src/form-components/slider.ts @@ -138,7 +138,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 滑动选择器 */ diff --git a/src/form-components/switch.ts b/src/form-components/switch.ts index b302c3a..b2998f9 100644 --- a/src/form-components/switch.ts +++ b/src/form-components/switch.ts @@ -78,7 +78,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 开关选择器 */ diff --git a/src/form-components/textarea.ts b/src/form-components/textarea.ts index 0a1e09a..1e979ec 100644 --- a/src/form-components/textarea.ts +++ b/src/form-components/textarea.ts @@ -332,7 +332,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 多行输入框 */ diff --git a/src/map/index.ts b/src/map/index.ts index 46e35df..ba3ce19 100644 --- a/src/map/index.ts +++ b/src/map/index.ts @@ -908,7 +908,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 地图组件,用于展示地图 */ diff --git a/src/media-components/audio.ts b/src/media-components/audio.ts index 200c00e..1ebc2dd 100644 --- a/src/media-components/audio.ts +++ b/src/media-components/audio.ts @@ -160,7 +160,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 音频 */ diff --git a/src/media-components/camera.ts b/src/media-components/camera.ts index f689f2a..6ab6be6 100644 --- a/src/media-components/camera.ts +++ b/src/media-components/camera.ts @@ -260,7 +260,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 页面内嵌的区域相机组件 */ diff --git a/src/media-components/image.ts b/src/media-components/image.ts index 400bb73..de73a8d 100644 --- a/src/media-components/image.ts +++ b/src/media-components/image.ts @@ -221,7 +221,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 图片 */ diff --git a/src/media-components/live-player.ts b/src/media-components/live-player.ts index 40e9132..517d51d 100644 --- a/src/media-components/live-player.ts +++ b/src/media-components/live-player.ts @@ -563,7 +563,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 实时音视频播放(直播拉流) */ diff --git a/src/media-components/live-pusher.ts b/src/media-components/live-pusher.ts index d7126bd..742ec9f 100644 --- a/src/media-components/live-pusher.ts +++ b/src/media-components/live-pusher.ts @@ -880,7 +880,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 实时音视频录制(直播推流) */ diff --git a/src/media-components/video.ts b/src/media-components/video.ts index 81661b7..a38a7d7 100644 --- a/src/media-components/video.ts +++ b/src/media-components/video.ts @@ -668,7 +668,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/navigation/navigator.ts b/src/navigation/navigator.ts index 4594292..cc3f658 100644 --- a/src/navigation/navigator.ts +++ b/src/navigation/navigator.ts @@ -296,7 +296,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/page-property-configuration-node/custom-tab-bar.ts b/src/page-property-configuration-node/custom-tab-bar.ts index f0cf727..3485e5d 100644 --- a/src/page-property-configuration-node/custom-tab-bar.ts +++ b/src/page-property-configuration-node/custom-tab-bar.ts @@ -90,7 +90,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** 自定义 tabBar 组件 */ diff --git a/src/page-property-configuration-node/navigation-bar.ts b/src/page-property-configuration-node/navigation-bar.ts index 753569f..a835307 100644 --- a/src/page-property-configuration-node/navigation-bar.ts +++ b/src/page-property-configuration-node/navigation-bar.ts @@ -268,7 +268,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/page-property-configuration-node/page-meta.ts b/src/page-property-configuration-node/page-meta.ts index c02ccf8..8094390 100644 --- a/src/page-property-configuration-node/page-meta.ts +++ b/src/page-property-configuration-node/page-meta.ts @@ -153,7 +153,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/cover-image.ts b/src/view-containers/cover-image.ts index d1d4dfb..accc104 100644 --- a/src/view-containers/cover-image.ts +++ b/src/view-containers/cover-image.ts @@ -76,7 +76,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/cover-view.ts b/src/view-containers/cover-view.ts index 6766ada..a88b2c9 100644 --- a/src/view-containers/cover-view.ts +++ b/src/view-containers/cover-view.ts @@ -49,7 +49,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/match-media.ts b/src/view-containers/match-media.ts index bad7205..7dbaab0 100644 --- a/src/view-containers/match-media.ts +++ b/src/view-containers/match-media.ts @@ -101,7 +101,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/movable-area.ts b/src/view-containers/movable-area.ts index 652a7ec..56e2f64 100644 --- a/src/view-containers/movable-area.ts +++ b/src/view-containers/movable-area.ts @@ -53,7 +53,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/movable-view.ts b/src/view-containers/movable-view.ts index d438f37..14c6d7b 100644 --- a/src/view-containers/movable-view.ts +++ b/src/view-containers/movable-view.ts @@ -233,7 +233,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/scroll-view.ts b/src/view-containers/scroll-view.ts index 985decc..9cef773 100644 --- a/src/view-containers/scroll-view.ts +++ b/src/view-containers/scroll-view.ts @@ -307,7 +307,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/swiper-item.ts b/src/view-containers/swiper-item.ts index 5517d6c..1740ad9 100644 --- a/src/view-containers/swiper-item.ts +++ b/src/view-containers/swiper-item.ts @@ -37,7 +37,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/swiper.ts b/src/view-containers/swiper.ts index 51a4b39..63edf05 100644 --- a/src/view-containers/swiper.ts +++ b/src/view-containers/swiper.ts @@ -281,7 +281,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/view-containers/view.ts b/src/view-containers/view.ts index 0498b25..7872294 100644 --- a/src/view-containers/view.ts +++ b/src/view-containers/view.ts @@ -69,7 +69,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** diff --git a/src/web-view/index.ts b/src/web-view/index.ts index bbbce63..0cceec0 100644 --- a/src/web-view/index.ts +++ b/src/web-view/index.ts @@ -93,7 +93,6 @@ declare global { } } -// @ts-expect-error Invalid module name in augmentation, module cannot be found. declare module '@vue/runtime-core' { export interface GlobalComponents { /** Web 浏览器组件,可承载网页 */