From 27982800aa5acd58e4af441e0340cd32b0a63560 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Tue, 23 Jan 2024 13:48:39 +0800 Subject: [PATCH] style: fix linter --- .devcontainer/devcontainer.json | 10 +++++----- docs/src/.vuepress/utils/transform/disqus2lc.ts | 7 +++++-- docs/tsconfig.json | 6 +++--- packages/api/tsconfig.json | 4 ++-- packages/client/src/styles/emoji.scss | 1 + packages/client/tsconfig.json | 4 ++-- tsconfig.json | 2 +- 7 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 385be2f6734..457e3924b44 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,12 +6,12 @@ "portsAttributes": { "5173": { "label": "Waline Client", - "onAutoForward": "openPreview" - } + "onAutoForward": "openPreview", + }, }, "customizations": { "codespaces": { - "openFiles": ["packages/client/src/init.ts"] - } - } + "openFiles": ["packages/client/src/init.ts"], + }, + }, } diff --git a/docs/src/.vuepress/utils/transform/disqus2lc.ts b/docs/src/.vuepress/utils/transform/disqus2lc.ts index d2fd85bd321..edb05dd867d 100644 --- a/docs/src/.vuepress/utils/transform/disqus2lc.ts +++ b/docs/src/.vuepress/utils/transform/disqus2lc.ts @@ -8,7 +8,10 @@ export const disqus2lc = (input: string) => { const posts = Array.from(dom.querySelectorAll('post')).filter( (postEl) => { const isDeletedEl = postEl.querySelector('isDeleted'); - if (isDeletedEl && isDeletedEl.textContent?.toLocaleLowerCase() === 'true') { + if ( + isDeletedEl && + isDeletedEl.textContent?.toLocaleLowerCase() === 'true' + ) { return false; } @@ -22,7 +25,7 @@ export const disqus2lc = (input: string) => { threads.forEach((threadEl) => { const urlEl = threadEl.querySelector('link'); const threadId = threadEl.getAttribute('dsq:id')!; - + articleMap[threadId] = ''; if (urlEl && urlEl.textContent) { const anchor = new URL(urlEl.textContent); diff --git a/docs/tsconfig.json b/docs/tsconfig.json index b26fe088645..eb14caa0ff7 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -6,8 +6,8 @@ "moduleResolution": "nodenext", "rootDir": "./src/.vuepress", "paths": { - "@theme-hope/*": ["vuepress-theme-hope/lib/client/*.js"] - } + "@theme-hope/*": ["vuepress-theme-hope/lib/client/*.js"], + }, }, - "include": ["./src/.vuepress/**/*.ts", "./src/.vuepress/**/*.vue"] + "include": ["./src/.vuepress/**/*.ts", "./src/.vuepress/**/*.vue"], } diff --git a/packages/api/tsconfig.json b/packages/api/tsconfig.json index 6f0e303cbc7..e9fce2e84bd 100644 --- a/packages/api/tsconfig.json +++ b/packages/api/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "module": "ESNext", "moduleResolution": "Bundler", - "rootDir": "./src" + "rootDir": "./src", }, - "include": ["./src/**/*.ts"] + "include": ["./src/**/*.ts"], } diff --git a/packages/client/src/styles/emoji.scss b/packages/client/src/styles/emoji.scss index 6233d08451b..fcb9e9e0cf3 100644 --- a/packages/client/src/styles/emoji.scss +++ b/packages/client/src/styles/emoji.scss @@ -3,6 +3,7 @@ top: 100%; inset-inline-start: 1.25em; z-index: 10; + display: none; max-width: 526px; diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index deca7fd9339..a44295e5d10 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -6,7 +6,7 @@ "noUnusedParameters": false, "module": "ESNext", "moduleResolution": "Bundler", - "rootDir": "./src" + "rootDir": "./src", }, - "include": ["./src/**/*.ts", "./src/**/*.vue"] + "include": ["./src/**/*.ts", "./src/**/*.vue"], } diff --git a/tsconfig.json b/tsconfig.json index 5194538c372..530ab588b24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.base.json", - "include": ["**/*.ts", "**/*.vue"] + "include": ["**/*.ts", "**/*.vue"], }