From 7b7e2f467f6f62a7e08812f1ff12bd1e455603cb Mon Sep 17 00:00:00 2001 From: Xicri <107226297+xicri@users.noreply.github.com> Date: Fri, 2 Aug 2024 08:01:51 +0900 Subject: [PATCH 1/5] chore: fix ESLint version to v8 We are not ready for ESLint v9 yet. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d7478023..960f38a9 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@nuxt/devtools": "^1.0.6", "@playwright/test": "^1.14.1", "concurrently": "^8.0.1", - "eslint": "latest", + "eslint": "^8", "eslint-config-xicri": "latest", "esno": "^4.0.0", "playwright": "^1.33.0", From b8d9646764505f0cc6fcd8d221bcd4257e8db03b Mon Sep 17 00:00:00 2001 From: Xicri <107226297+xicri@users.noreply.github.com> Date: Fri, 2 Aug 2024 08:02:22 +0900 Subject: [PATCH 2/5] chore: remove no longer required override for `@typescript-eslint/eslint-plugin` --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index 960f38a9..4fc9e9b5 100644 --- a/package.json +++ b/package.json @@ -61,9 +61,6 @@ "vue-tsc": "^1.8.8", "xml2js": "^0.6.2" }, - "overrides": { - "@typescript-eslint/eslint-plugin": "latest" - }, "engines": { "node": "20.x", "npm": ">=10" From f636857d3dab22a4bc0c6e835fbdf297eb902b13 Mon Sep 17 00:00:00 2001 From: Xicri <107226297+xicri@users.noreply.github.com> Date: Fri, 2 Aug 2024 08:01:12 +0900 Subject: [PATCH 3/5] chore: upgrade `vue-tsc` vue-tsc v1 no longer work with TypeScript v5.5+. https://github.com/vuejs/language-tools/issues/4484 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4fc9e9b5..9b375919 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "reg-simple-keygen-plugin": "^0.12.1", "reg-suit": "^0.14.3", "vitest": "^1.1.3", - "vue-tsc": "^1.8.8", + "vue-tsc": "^2.0.29", "xml2js": "^0.6.2" }, "engines": { From 93741a839c150121c6956925189bf8d7ec30ae57 Mon Sep 17 00:00:00 2001 From: Xicri <107226297+xicri@users.noreply.github.com> Date: Thu, 1 Aug 2024 21:21:41 +0900 Subject: [PATCH 4/5] refactor: sort imports & add file extensions --- components/translation.vue | 2 +- components/word-list-results.vue | 6 +++--- components/word-list-search.vue | 4 ++-- components/word-list.vue | 4 ++-- middleware/redirects.global.ts | 2 +- nuxt.config.ts | 2 +- pages/[wordid].vue | 4 ++-- pages/about.vue | 2 +- pages/history.vue | 4 ++-- pages/index.vue | 2 +- pages/opendata.vue | 2 +- pages/tags/[id].vue | 2 +- scripts/postinstall.mjs | 8 ++++---- scripts/vrt-screenshot.ts | 4 ++-- store/index.ts | 2 +- tests/search.test.ts | 6 +++--- tsconfig.json | 3 ++- 17 files changed, 30 insertions(+), 29 deletions(-) diff --git a/components/translation.vue b/components/translation.vue index 49b8827f..f2c3f0d6 100644 --- a/components/translation.vue +++ b/components/translation.vue @@ -13,7 +13,7 @@