Skip to content

Commit

Permalink
style: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 23, 2024
1 parent b30dd57 commit 2798280
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
},
}
7 changes: 5 additions & 2 deletions docs/src/.vuepress/utils/transform/disqus2lc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export const disqus2lc = (input: string) => {
const posts = Array.from(dom.querySelectorAll<HTMLElement>('post')).filter(
(postEl) => {
const isDeletedEl = postEl.querySelector('isDeleted');
if (isDeletedEl && isDeletedEl.textContent?.toLocaleLowerCase() === 'true') {
if (
isDeletedEl &&
isDeletedEl.textContent?.toLocaleLowerCase() === 'true'
) {
return false;
}

Expand All @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}
4 changes: 2 additions & 2 deletions packages/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"rootDir": "./src"
"rootDir": "./src",
},
"include": ["./src/**/*.ts"]
"include": ["./src/**/*.ts"],
}
1 change: 1 addition & 0 deletions packages/client/src/styles/emoji.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
top: 100%;
inset-inline-start: 1.25em;
z-index: 10;

display: none;

max-width: 526px;
Expand Down
4 changes: 2 additions & 2 deletions packages/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"noUnusedParameters": false,
"module": "ESNext",
"moduleResolution": "Bundler",
"rootDir": "./src"
"rootDir": "./src",
},
"include": ["./src/**/*.ts", "./src/**/*.vue"]
"include": ["./src/**/*.ts", "./src/**/*.vue"],
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.base.json",
"include": ["**/*.ts", "**/*.vue"]
"include": ["**/*.ts", "**/*.vue"],
}

0 comments on commit 2798280

Please sign in to comment.