chore: format

This commit is contained in:
naskya 2024-03-17 00:34:57 +09:00
parent d65c00f219
commit 1d0223e653
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
6 changed files with 14 additions and 41 deletions

View file

@ -463,7 +463,7 @@ export default abstract class Chart<T extends Schema> {
protected commit(diff: Commit<T>, group: string | null = null): void {
for (const [k, v] of Object.entries(diff)) {
if (v == null || v === 0 || (Array.isArray(v) && v.length === 0))
// rome-ignore lint/performance/noDelete: needs to be deleted not just set to undefined
// biome-ignore lint/performance/noDelete: needs to be deleted not just set to undefined
delete diff[k];
}
this.buffer.push({

View file

@ -26,16 +26,9 @@
"paths": {
"@/*": ["../src/*"]
},
"typeRoots": [
"../node_modules/@types",
"../src/@types"
],
"lib": [
"esnext"
]
"typeRoots": ["../node_modules/@types", "../src/@types"],
"lib": ["esnext"]
},
"compileOnSave": false,
"include": [
"./**/*.ts"
]
"include": ["./**/*.ts"]
}

View file

@ -25,24 +25,13 @@
"rootDir": "./src",
"baseUrl": "./",
"paths": {
"@/*": [
"./src/*"
]
"@/*": ["./src/*"]
},
"outDir": "./built",
"types": [
"node"
],
"typeRoots": [
"./node_modules/@types",
"./src/@types"
],
"lib": [
"esnext"
]
"types": ["node"],
"typeRoots": ["./node_modules/@types", "./src/@types"],
"lib": ["esnext"]
},
"compileOnSave": false,
"include": [
"./src/**/*.ts"
]
"include": ["./src/**/*.ts"]
}

View file

@ -632,9 +632,7 @@ function setPostExpanded(val: boolean) {
const accessibleLabel = computed(() => {
let label = `${appearNote.value.user.username}; `;
if (appearNote.value.renote) {
label += `${i18n.t("renoted")} ${
appearNote.value.renote.user.username
}; `;
label += `${i18n.t("renoted")} ${appearNote.value.renote.user.username}; `;
if (appearNote.value.renote.cw) {
label += `${i18n.t("cw")}: ${appearNote.value.renote.cw}; `;
if (postIsExpanded.value) {

View file

@ -130,9 +130,7 @@ const searchUsers = ref(
);
const searchRange = ref(
searchParams.has("since") || searchParams.has("until")
? `${searchParams.get("since") ?? ""}-${
searchParams.get("until") ?? ""
}`
? `${searchParams.get("since") ?? ""}-${searchParams.get("until") ?? ""}`
: "",
);
const searchPostsWithFiles = ref(searchParams.get("withFiles") === "1");

View file

@ -23,15 +23,10 @@
"useDefineForClassFields": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"@/*": ["./src/*"]
},
"typeRoots": [
"node_modules/@types",
"@types",
],
"types": [
"vite/client",
],
"typeRoots": ["node_modules/@types", "@types"],
"types": ["vite/client"],
"lib": ["esnext", "dom"],
"jsx": "preserve"
},