From 3c538e2a488353de2e739f48f9ce64846d6b5ff2 Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Mon, 20 Oct 2025 21:22:53 +0900 Subject: [PATCH 1/3] meta: init ci --- .github/workflows/ci.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..f3c437b --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,35 @@ +name: CI +on: + pull_request: + push: + branches: + - main + +jobs: + type-check: + name: Type Check + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v5 + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun check + build: + name: Build + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v5 + - uses: oven-sh/setup-bun@v2 + - run: bun install --frozen-lockfile + - run: bun run build + lint: + name: Lint (Prettier + ESLint) + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v5 + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun lint From dd8af5addae6c255a4f678cc76d6f37de253d00a Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Mon, 20 Oct 2025 21:32:30 +0900 Subject: [PATCH 2/3] tsconfig: allowJs=false;checkJs=false, rename: src/lib/icons/index.js -> src/lib/icons/index.ts --- src/lib/icons/{index.js => index.ts} | 0 tsconfig.json | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/lib/icons/{index.js => index.ts} (100%) diff --git a/src/lib/icons/index.js b/src/lib/icons/index.ts similarity index 100% rename from src/lib/icons/index.js rename to src/lib/icons/index.ts diff --git a/tsconfig.json b/tsconfig.json index e3898cb..4c9d070 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "extends": "./.svelte-kit/tsconfig.json", "compilerOptions": { - "allowJs": true, - "checkJs": true, + "allowJs": false, + "checkJs": false, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, From 21f021080cc0d99465a0251e72df229857f25bd4 Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Mon, 20 Oct 2025 21:36:10 +0900 Subject: [PATCH 3/3] eslint: disable rule useless-escape --- eslint.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint.config.js b/eslint.config.js index b484983..d1dd2ab 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -25,6 +25,7 @@ export default defineConfig( // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects. // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors "no-undef": "off", + "no-useless-escape": "off", }, }, {