Skip to content

Commit e2a91a3

Browse files
committed
style: fix linter
1 parent 58b2818 commit e2a91a3

File tree

22 files changed

+80
-87
lines changed

22 files changed

+80
-87
lines changed

docs/plugins/search/slimsearch.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,11 +528,10 @@ Since searching is done in a Web Worker, setting function-typed options for `sli
528528
For more accurate search queries, suggestions, and results, we provide `querySplitter`, `suggestionsFilter`, and `resultsFilter` options. You can set them for specific or all languages:
529529

530530
```ts
531-
interface SearchLocaleOptions
532-
extends Omit<
533-
SearchOptions,
534-
'boostDocument' | 'fields' | 'filter' | 'processTerm' | 'tokenize'
535-
> {
531+
interface SearchLocaleOptions extends Omit<
532+
SearchOptions,
533+
'boostDocument' | 'fields' | 'filter' | 'processTerm' | 'tokenize'
534+
> {
536535
/** A function to split words */
537536
querySplitter?: (query: string) => Promise<string[]>
538537

docs/zh/plugins/search/slimsearch.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -538,11 +538,10 @@ terminate()
538538
为了提供更准确的搜索查询、建议和结果,我们额外提供了 `querySplitter` `suggestionsFilter``resultsFilter` 选项,你可以为特定或所有语言设定它们:
539539

540540
```ts
541-
interface SearchLocaleOptions
542-
extends Omit<
543-
SearchOptions,
544-
'boostDocument' | 'fields' | 'filter' | 'processTerm' | 'tokenize'
545-
> {
541+
interface SearchLocaleOptions extends Omit<
542+
SearchOptions,
543+
'boostDocument' | 'fields' | 'filter' | 'processTerm' | 'tokenize'
544+
> {
546545
/** 分词器 */
547546
querySplitter?: (query: string) => Promise<string[]>
548547

plugins/ai/plugin-llms/src/node/resolveLLMPages.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ const cleanMarkdown: Plugin = () => (tree) => {
1717

1818
const remarkInstance = remark().use(cleanMarkdown)
1919

20-
interface ResolveLLMPagesOptions
21-
extends Required<Pick<LlmsPluginOptions, 'filter' | 'stripHTML'>> {
20+
interface ResolveLLMPagesOptions extends Required<
21+
Pick<LlmsPluginOptions, 'filter' | 'stripHTML'>
22+
> {
2223
currentLocale: string
2324
}
2425

plugins/blog/plugin-blog/src/node/options.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,10 @@ export interface BlogPluginPageData {
161161
excerpt?: string
162162
}
163163

164-
export interface BlogPluginOptions
165-
extends Pick<
166-
PageExcerptOptions,
167-
'isCustomElement' | 'keepFenceDom' | 'keepPageTitle'
168-
> {
164+
export interface BlogPluginOptions extends Pick<
165+
PageExcerptOptions,
166+
'isCustomElement' | 'keepFenceDom' | 'keepPageTitle'
167+
> {
169168
/**
170169
* Function to extract article information from page
171170
*

plugins/blog/plugin-comment/src/client/components/GiscusComment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ export default defineComponent({
104104
Boolean(
105105
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
106106
giscusOptions.value.repo &&
107-
giscusOptions.value.repoId &&
108-
giscusOptions.value.category &&
109-
giscusOptions.value.categoryId,
107+
giscusOptions.value.repoId &&
108+
giscusOptions.value.category &&
109+
giscusOptions.value.categoryId,
110110
),
111111
)
112112

plugins/blog/plugin-comment/src/node/options.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ import type {
1313
*
1414
* Artalk 评论插件选项
1515
*/
16-
export interface ArtalkPluginOptions
17-
extends Omit<Partial<ArtalkOptions>, 'avatarURLBuilder' | 'imgUploader'> {
16+
export interface ArtalkPluginOptions extends Omit<
17+
Partial<ArtalkOptions>,
18+
'avatarURLBuilder' | 'imgUploader'
19+
> {
1820
provider: 'Artalk'
1921
}
2022

@@ -41,11 +43,10 @@ export interface TwikooPluginOptions extends Partial<TwikooOptions> {
4143
*
4244
* Waline 评论插件选项
4345
*/
44-
export interface WalinePluginOptions
45-
extends Omit<
46-
Partial<WalineOptions>,
47-
'highlighter' | 'imageUploader' | 'search' | 'texRenderer'
48-
> {
46+
export interface WalinePluginOptions extends Omit<
47+
Partial<WalineOptions>,
48+
'highlighter' | 'imageUploader' | 'search' | 'texRenderer'
49+
> {
4950
provider: 'Waline'
5051

5152
/**

plugins/blog/plugin-comment/src/shared/options/waline.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export type WalineLocaleData = Partial<WalineLocale>
1414
* Waline 评论选项
1515
*/
1616
export interface WalineOptions
17-
extends BaseCommentPluginOptions,
17+
extends
18+
BaseCommentPluginOptions,
1819
Omit<WalineInitOptions, 'comment' | 'el' | 'locale'> {
1920
/**
2021
* Whether enable page views count by default

plugins/blog/plugin-feed/src/node/getFeedOptions.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ import type {
1414
} from '../typings/index.js'
1515

1616
export interface ResolvedFeedOptions
17-
extends Omit<
18-
BaseFeedPluginOptions,
19-
'filter' | 'preservedElements' | 'sorter'
20-
>,
17+
extends
18+
Omit<BaseFeedPluginOptions, 'filter' | 'preservedElements' | 'sorter'>,
2119
Required<Pick<BaseFeedPluginOptions, 'filter' | 'sorter'>> {
2220
hostname: string
2321
isPreservedElement: (tagName: string) => boolean

plugins/development/plugin-theme-data/src/shared/themeData.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import type { LocaleConfig, LocaleData } from 'vuepress/shared'
55
*
66
* 支持多语言的主题数据
77
*/
8-
export type ThemeData<T extends LocaleData = LocaleData> = T & {
8+
export type ThemeData<T extends LocaleData = LocaleData> = Omit<
9+
T,
10+
'locales'
11+
> & {
912
/**
1013
* Locale configurations
1114
*

plugins/features/plugin-icon/src/node/options.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export type BuiltInIcon = 'fontawesome-with-brands' | 'fontawesome' | 'iconify'
1313
* 图标链接类型
1414
*/
1515
export type IconLink =
16-
| `//${string}`
17-
| `/${string}`
16+
| `/${string}` // including `//${string}`
1817
| `http://${string}`
1918
| `https://${string}`
2019

0 commit comments

Comments
 (0)