Skip to content

Commit e320e1e

Browse files
authored
Chore/deps (#454)
* chore: update deps and eslint config * chore: use node24
1 parent e0b358d commit e320e1e

File tree

11 files changed

+604
-1340
lines changed

11 files changed

+604
-1340
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ jobs:
2929
- uses: actions/checkout@v6
3030
- uses: actions/setup-node@v6
3131
with:
32-
node-version: ^22.22.1
32+
node-version: ^24.14.1
3333
- run: corepack enable
3434
- run: pnpm --version
3535
- uses: actions/setup-node@v6
3636
with:
37-
node-version: ^22.22.1
37+
node-version: ^24.14.1
3838
cache: "pnpm"
39-
cache-dependency-path: "**/pnpm-lock.yaml"
4039
- name: install
4140
run: pnpm install --frozen-lockfile --prefer-offline
4241
- name: format

.github/workflows/ecosystem-ci-from-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- uses: actions/checkout@v6
115115
- uses: actions/setup-node@v6
116116
with:
117-
node-version: ^22.22.1
117+
node-version: ^24.14.1
118118
- run: corepack enable
119119
- run: pnpm --version
120120
- run: pnpm i --frozen-lockfile
@@ -188,7 +188,7 @@ jobs:
188188
- uses: actions/checkout@v6
189189
- uses: actions/setup-node@v6
190190
with:
191-
node-version: ^22.22.1
191+
node-version: ^24.14.1
192192
- run: corepack enable
193193
- run: pnpm --version
194194
- run: pnpm i --frozen-lockfile

.github/workflows/ecosystem-ci-selected.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
- uses: actions/checkout@v6
9696
- uses: actions/setup-node@v6
9797
with:
98-
node-version: ^22.22.1
98+
node-version: ^24.14.1
9999
id: setup-node
100100
- run: corepack enable
101101
- run: pnpm --version

.github/workflows/ecosystem-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- uses: actions/checkout@v6
9393
- uses: actions/setup-node@v6
9494
with:
95-
node-version: ^22.22.1
95+
node-version: ^24.14.1
9696
id: setup-node
9797
- run: corepack enable
9898
- run: pnpm --version

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ vite
55
workspace
66
.pnpm-debug.log
77
.idea
8+
.eslintcache

eslint.config.js

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
// @ts-check
22
import eslint from '@eslint/js'
3-
import pluginN from 'eslint-plugin-n'
3+
import n from 'eslint-plugin-n'
44
import tseslint from 'typescript-eslint'
5+
import prettierConfig from 'eslint-config-prettier/flat'
56

6-
export default tseslint.config(
7+
export default tseslint.config([
78
{
9+
name: 'local/ignores',
810
ignores: ['workspace/**'],
911
},
1012
eslint.configs.recommended,
11-
...tseslint.configs.recommended,
13+
tseslint.configs.recommended,
14+
n.configs['flat/recommended-module'],
15+
prettierConfig,
1216
{
13-
name: 'main',
14-
languageOptions: {
15-
parser: tseslint.parser,
16-
parserOptions: {
17-
sourceType: 'module',
18-
ecmaVersion: 2022,
19-
project: true,
20-
},
21-
},
22-
plugins: {
23-
n: pluginN,
24-
},
17+
name: 'local/rules',
18+
files: ['**/*.{js,ts}'],
2519
rules: {
2620
eqeqeq: ['warn', 'always', { null: 'never' }],
2721
'no-debugger': ['error'],
@@ -34,9 +28,8 @@ export default tseslint.config(
3428
destructuring: 'all',
3529
},
3630
],
37-
'n/no-missing-import': 'off', // doesn't like ts imports
3831
'n/no-process-exit': 'off',
3932
'@typescript-eslint/no-explicit-any': 'off', // we use any in some places
4033
},
4134
},
42-
)
35+
])

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"description": "Vite Ecosystem CI",
66
"scripts": {
77
"prepare": "pnpm exec simple-git-hooks",
8-
"lint": "eslint '**/*.ts'",
8+
"lint": "eslint --cache '**/*.{js,ts}'",
99
"lint:fix": "pnpm lint --fix",
1010
"typecheck": "tsc",
1111
"format": "prettier --ignore-path .gitignore --check .",
1212
"format:fix": "pnpm format --write",
13-
"test:self": "tsx ecosystem-ci.ts _selftest",
14-
"test": "tsx ecosystem-ci.ts",
15-
"bisect": "tsx ecosystem-ci.ts bisect"
13+
"test:self": "node ecosystem-ci.ts _selftest",
14+
"test": "node ecosystem-ci.ts",
15+
"bisect": "node ecosystem-ci.ts bisect"
1616
},
1717
"simple-git-hooks": {
1818
"pre-commit": "pnpm exec lint-staged --concurrent false"
@@ -21,14 +21,14 @@
2121
"*": [
2222
"prettier --write --ignore-unknown"
2323
],
24-
"*.ts": [
24+
"*.{js,ts}": [
2525
"eslint --fix"
2626
]
2727
},
2828
"packageManager": "pnpm@10.32.1",
2929
"type": "module",
3030
"engines": {
31-
"node": ">=18",
31+
"node": ">=24",
3232
"pnpm": "^10.0.0"
3333
},
3434
"repository": {
@@ -42,24 +42,24 @@
4242
"homepage": "https://github.com/vitejs/vite-ecosystem-ci#readme",
4343
"dependencies": {
4444
"@actions/core": "^3.0.0",
45-
"cac": "^6.7.14",
45+
"cac": "^7.0.0",
4646
"execa": "^9.6.1"
4747
},
4848
"devDependencies": {
49-
"@antfu/ni": "^28.3.0",
50-
"@eslint/js": "^9.39.4",
51-
"@types/node": "^22.19.15",
49+
"@antfu/ni": "^30.0.0",
50+
"@eslint/js": "^10.0.1",
51+
"@types/node": "^25.5.0",
5252
"@types/pacote": "^11.1.8",
5353
"@types/semver": "^7.7.1",
54-
"eslint": "^9.39.4",
54+
"eslint": "^10.1.0",
55+
"eslint-config-prettier": "^10.1.8",
5556
"eslint-plugin-n": "^17.24.0",
56-
"lint-staged": "^15.5.2",
57+
"lint-staged": "^16.4.0",
5758
"pacote": "^21.5.0",
5859
"prettier": "^3.8.1",
5960
"semver": "^7.7.4",
6061
"simple-git-hooks": "^2.13.1",
61-
"tsx": "^4.21.0",
6262
"typescript": "^5.9.3",
63-
"typescript-eslint": "^8.57.0"
63+
"typescript-eslint": "^8.57.2"
6464
}
6565
}

0 commit comments

Comments
 (0)