Skip to content

Commit edd489f

Browse files
committed
fix: lint
1 parent a353353 commit edd489f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

archive/2024/04/js_taiso_Infinity/js-taiso-001/public/graph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function clear() {
6969

7070
function guide(url) {
7171
promises.push(
72-
Promise.all([...promises]).then(() =>
72+
Promise.all(promises).then(() =>
7373
fetch(url)
7474
.then((res) => res.arrayBuffer())
7575
.then((bin) => {
@@ -88,7 +88,7 @@ function guide(url) {
8888
}
8989

9090
function draw(f) {
91-
Promise.all([...promises]).then(() => {
91+
Promise.all(promises).then(() => {
9292
ctx.save();
9393
ctx.lineCap = 'round';
9494
ctx.lineJoin = 'round';

archive/2024/09/DeathCat/music/script.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/article/article.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function getYearDirectories(basePath: string): string[] {
3434
// Ensure it's a directory and starts with "article-"
3535
return fs.statSync(yearPath).isDirectory() && year.startsWith("article-");
3636
})
37-
.reverse(); // Process in reverse chronological order (e.g., 2025 before 2024)
37+
.toReversed(); // Process in reverse chronological order (e.g., 2025 before 2024)
3838
}
3939

4040
function getMonthDirectories(yearPath: string): string[] {
@@ -44,7 +44,7 @@ function getMonthDirectories(yearPath: string): string[] {
4444
const monthPath = path.join(yearPath, month);
4545
return fs.statSync(monthPath).isDirectory();
4646
})
47-
.reverse(); // Process in reverse chronological order
47+
.toReversed(); // Process in reverse chronological order
4848
}
4949

5050
function getArticleIdDirectories(monthPath: string): string[] {
@@ -54,7 +54,7 @@ function getArticleIdDirectories(monthPath: string): string[] {
5454
const articlePath = path.join(monthPath, articleId);
5555
return fs.statSync(articlePath).isDirectory();
5656
})
57-
.reverse(); // Process in reverse chronological order
57+
.toReversed(); // Process in reverse chronological order
5858
}
5959

6060
function processArticleDirectory(

0 commit comments

Comments
 (0)