Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed May 24, 2024
1 parent 8564028 commit ca03a5f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"build"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.88.9.wasm",
"https://plugins.dprint.dev/json-0.19.1.wasm",
"https://plugins.dprint.dev/markdown-0.16.3.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.1.4.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.3.1.wasm"
"https://plugins.dprint.dev/typescript-0.90.5.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/markdown-0.17.0.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.4.0.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.8.0.wasm"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build": "vite build",
"fix:fmt": "dprint fmt",
"check:fmt": "dprint check",
"check:lint": "oxlint src -D correctness -D pedantic"
"check:lint": "oxlint src -D correctness -W pedantic"
},
"imports": {
"#const/*": "./src/const/*"
Expand Down
2 changes: 1 addition & 1 deletion src/components/audio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const TimeLine: React.FC<{ duration: number; paused: boolean }> = ({ duration, p
const value = ev.target.value;

rafId.current = requestAnimationFrame(() => {
const time = Number.parseInt(value, 0);
const time = Number.parseInt(value, 10);
setCurrentTime(time);
audioRef.currentTime = time;
});
Expand Down
3 changes: 2 additions & 1 deletion src/components/preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export const Preferences: React.FC = () => {
}

if (value.length === 3) {
value = [].map.call(value, (v: string) => v + v).join("");
const [r,g,b] = value;
value = r + r + g + g + b + b;
}
if (value.length < 6) {
value = value.padEnd(6, "0");
Expand Down

0 comments on commit ca03a5f

Please sign in to comment.