Skip to content

Commit f0e2991

Browse files
committed
feat: upgrade deps + fix linting errors
1 parent 1b47428 commit f0e2991

20 files changed

+1583
-1973
lines changed

.github/workflows/main.yml

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,68 @@ on:
44
pull_request:
55
branches: ['main']
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
12+
lint:
13+
name: Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 24.0.0
23+
cache: 'npm'
24+
cache-dependency-path: package-lock.json
25+
26+
- name: Install dependencies
27+
run: npm ci --prefer-offline --no-audit --no-fund
28+
29+
- name: Run linter
30+
run: npm run lint
31+
832
test:
933
name: Test
1034
runs-on: ubuntu-latest
1135
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 24.0.0
43+
cache: 'npm'
44+
cache-dependency-path: package-lock.json
45+
46+
- name: Install dependencies
47+
run: npm ci --prefer-offline --no-audit --no-fund
48+
49+
- name: Run tests
50+
run: npm test
51+
52+
build:
53+
name: Build (gated)
54+
runs-on: ubuntu-latest
55+
needs: [lint, test]
56+
steps:
57+
- name: Checkout repository
58+
uses: actions/checkout@v4
59+
60+
- name: Setup Node.js
61+
uses: actions/setup-node@v4
1462
with:
1563
node-version: 24.0.0
16-
- run: npm ci
17-
- run: npm test
64+
cache: 'npm'
65+
cache-dependency-path: package-lock.json
66+
67+
- name: Install dependencies
68+
run: npm ci --prefer-offline --no-audit --no-fund
69+
70+
- name: Build
71+
run: npm run build

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import js from '@eslint/js'
2+
import { defineConfig } from 'eslint/config'
23
import globals from 'globals'
34
import reactHooks from 'eslint-plugin-react-hooks'
45
import reactRefresh from 'eslint-plugin-react-refresh'
56
import solid from 'eslint-plugin-solid'
67
import tseslint from 'typescript-eslint'
78

8-
export default tseslint.config(
9+
export default defineConfig(
910
{ ignores: ['dist', 'coverage', 'node_modules'] },
1011
{
1112
extends: [js.configs.recommended, ...tseslint.configs.recommended],

0 commit comments

Comments
 (0)