diff --git a/docs/.vitepress/config/index.ts b/docs/.vitepress/config/index.ts index 07554e69..5b56ba41 100644 --- a/docs/.vitepress/config/index.ts +++ b/docs/.vitepress/config/index.ts @@ -102,8 +102,7 @@ export default defineConfig({ detailedView: true, miniSearch: { searchOptions: { - boostDocument(docId: string, _term, storeFields) { - console.log({ docId, _term, storeFields }) + boostDocument(docId: string) { if (docId.startsWith('/api/')) return 0.1 if (docId.startsWith('/guide/')) return 1.5 return 1 diff --git a/eslint.config.js b/eslint.config.js index c2bf9b8e..e3bdd6d1 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -21,4 +21,11 @@ export default antfu({ 'style/indent': 'off', 'style/indent-binary-ops': 'off', }, +}, { + files: [ + 'playground/**/*', + ], + rules: { + 'no-console': 'off', + }, })