chore: lint fix

This commit is contained in:
pengzhanbo 2024-08-21 01:59:36 +08:00
parent 5cb39d2897
commit 421fce40da
5 changed files with 13 additions and 13 deletions

View File

@ -11,7 +11,7 @@ tags:
## 介绍
**vuepress-theme-plume** 是一个基于 VuePress 的主题,适用于 博客、文档 和 知识笔记 。
==vuepress-theme-plume== 是一个基于 VuePress 的主题,适用于 博客、文档 和 知识笔记 。
VuePress 是一个 [静态站点生成器](https://en.wikipedia.org/wiki/Static_site_generator) (SSG) 。
专为构建快速、以内容为中心的站点而设计。
@ -40,7 +40,7 @@ VuePress 是一个 [静态站点生成器](https://en.wikipedia.org/wiki/Static_
- 支持使用单独的主题配置文件,避免修改配置导致频繁重启 VuePress 服务。
- 大幅度简化了配置,更易于使用,同时还保留了丰富灵活的配置项,满足个性化的需求。
`plume` 主题尽可能的内置你可能需要的功能,以及搭建站点所需要的一般性配置,您无需关注这些细节。
==plume 主题== 尽可能的内置你可能需要的功能,以及搭建站点所需要的一般性配置,您无需关注这些细节。
目的是,让您更专注于 内容的创作,更好的表达你的想法,享受 Markdown 增强语法带来的便利。
## 功能

View File

@ -29,11 +29,11 @@ const option = {
return (
`${date.getDate()
}/${
date.getMonth() + 1
date.getMonth() + 1
}/${
date.getFullYear()
date.getFullYear()
} : ${
params.value[1]}`
params.value[1]}`
)
},
axisPointer: {

View File

@ -63,8 +63,8 @@ ${Array.from(imports.values()).join('\n')}
export default defineClientConfig({
enhance({ router, app }) {
${Array.from(enhances.values())
.map(item => ` ${item}`)
.join('\n')}
.map(item => ` ${item}`)
.join('\n')}
}
})
`,

View File

@ -14,8 +14,8 @@ export function getLanguage(
if (!langLoaded && !isPlainLang(lang) && !isSpecialLang(lang)) {
logger.warn(
c.yellow(
`\nThe language '${lang}' is not loaded, falling back to '${defaultLang || 'txt'
}' for syntax highlighting.`,
`\nThe language '${lang}' is not loaded, falling back to '${defaultLang || 'txt'
}' for syntax highlighting.`,
),
)
lang = defaultLang

View File

@ -21,19 +21,19 @@ import { useCollapsedLines } from '${CLIENT_FOLDER}composables/collapsed-lines.j
export default {
${twoslash
? `enhance({ app }) {
? `enhance({ app }) {
enhanceTwoslash(app)
},`
: ''}
: ''}
${copyCode
? `setup() {
? `setup() {
useCopyCode({
selector: __CC_SELECTOR__,
duration: __CC_DURATION__,
})
useCollapsedLines()
},`
: ''}
: ''}
}
`,
)