Skip to content

Commit 08aae92

Browse files
authored
Merge pull request #7 from ut-code/meta/init-ci
meta: init ci
2 parents 0c7c650 + 21f0210 commit 08aae92

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
type-check:
10+
name: Type Check
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: oven-sh/setup-bun@v2
16+
- run: bun install
17+
- run: bun check
18+
build:
19+
name: Build
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
steps:
23+
- uses: actions/checkout@v5
24+
- uses: oven-sh/setup-bun@v2
25+
- run: bun install --frozen-lockfile
26+
- run: bun run build
27+
lint:
28+
name: Lint (Prettier + ESLint)
29+
runs-on: ubuntu-latest
30+
timeout-minutes: 10
31+
steps:
32+
- uses: actions/checkout@v5
33+
- uses: oven-sh/setup-bun@v2
34+
- run: bun install
35+
- run: bun lint

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default defineConfig(
2525
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
2626
// 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
2727
"no-undef": "off",
28+
"no-useless-escape": "off",
2829
},
2930
},
3031
{

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"extends": "./.svelte-kit/tsconfig.json",
33
"compilerOptions": {
4-
"allowJs": true,
5-
"checkJs": true,
4+
"allowJs": false,
5+
"checkJs": false,
66
"esModuleInterop": true,
77
"forceConsistentCasingInFileNames": true,
88
"resolveJsonModule": true,

0 commit comments

Comments
 (0)