Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 20, 2024
1 parent 619c920 commit 04904dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ export default antfu({
'style/indent': 'off',
'style/indent-binary-ops': 'off',
},
}, {
files: [
'playground/**/*',
],
rules: {
'no-console': 'off',
},
})

0 comments on commit 04904dc

Please sign in to comment.