diff --git a/.eslintrc.js b/.eslintrc.js index a40450ac..e2a5efe4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,6 +5,7 @@ module.exports = { node: true }, extends: [ + 'plugin:react/jsx-runtime', 'plugin:react/recommended', 'plugin:@next/next/recommended', 'standard', diff --git a/lib/config.js b/lib/config.js index 13d805ba..63781524 100644 --- a/lib/config.js +++ b/lib/config.js @@ -50,7 +50,7 @@ export const siteConfig = (key, defaultVal = null, extendConfig = {}) => { // console.warn('SiteConfig警告', key, error) } - // 首先 配置最优先读取NOTION中的表格配置 + // 配置最优先读取NOTION中的表格配置 let val = null let siteInfo = null diff --git a/themes/gitbook/components/ArticleInfo.js b/themes/gitbook/components/ArticleInfo.js index b2d58efe..d559a90d 100644 --- a/themes/gitbook/components/ArticleInfo.js +++ b/themes/gitbook/components/ArticleInfo.js @@ -1,9 +1,16 @@ +/** + * 文章补充咨询 + * @param {*} param0 + * @returns + */ export default function ArticleInfo({ post }) { if (!post) { return null } - return