Skip to content

Commit

Permalink
biome check unsafe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaoka committed Oct 17, 2024
1 parent a83ebcf commit 0bf94f4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"test": "vitest",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "biome lint --write src/",
"format": "biome format --write src/",
"check": "biome check --write src/",
"lint": "biome lint --write ./src",
"format": "biome format --write ./src",
"check": "biome check --write ./src",
"prepare": "husky"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/streams/LiverEventTimeSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const hhss = computed(() => {
});
function getTimeColor(hour: number) {
return "var(--hour" + hour + ")";
return `var(--hour${hour})`;
}
</script>
<template>
Expand Down
6 changes: 3 additions & 3 deletions src/lib/text.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const hashtagPrefixPattern = "[##]";
const hashtagPrefixRegExp = new RegExp(hashtagPrefixPattern);
const hashTagRegex = new RegExp(hashtagPrefixPattern + ".+", "g");
const hashTagRegex = new RegExp(`${hashtagPrefixPattern}.+`, "g");
const minKeywordLength = 2;
const minHashtagLength = 3;

Expand All @@ -10,11 +10,11 @@ export function extractParenthesizedText(text: string, author = ""): string[] {
const openingParentheses = parentheses
.split("")
.filter((_, index) => index % 2 === 0)
.map((p) => "\\" + p);
.map((p) => `\\${p}`);
const closingParentheses = parentheses
.split("")
.filter((_, index) => index % 2 !== 0)
.map((p) => "\\" + p);
.map((p) => `\\${p}`);
const parenthesesPattern = new RegExp(
`(?<=[${openingParentheses.join("")}])(.*?)(?=[${closingParentheses.join("")}])`,
"g",
Expand Down
2 changes: 1 addition & 1 deletion src/services/hololive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function fetchHoloEventList(): Promise<LiverEvent[]> {

const events = wholeVideoList.map(async (video) => {
const title =
video.platformType === 0 ? `(他チャンネルでの配信)` : video.title;
video.platformType === 0 ? "(他チャンネルでの配信)" : video.title;
const talent = {
name: video.name,
image: video.talent.iconImageUrl,
Expand Down

0 comments on commit 0bf94f4

Please sign in to comment.