Skip to content

Commit fe06183

Browse files
committed
ci: upgrade to eslint 9
1 parent acfdd61 commit fe06183

File tree

21 files changed

+854
-874
lines changed

21 files changed

+854
-874
lines changed

.eslintrc.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: 18
28+
node-version: 20
2929
cache: 'pnpm'
3030
- name: Check package.json files
3131
run: pnpm --package=@trigen/lint-package-json dlx lint-package-json --monorepo

.github/workflows/commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install Node.js
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
cache: 'pnpm'
2222
- name: Install dependencies
2323
run: pnpm install

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Install Node.js
5050
uses: actions/setup-node@v4
5151
with:
52-
node-version: 18
52+
node-version: 20
5353
cache: 'pnpm'
5454
registry-url: 'https://registry.npmjs.org'
5555
- name: Install dependencies

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
- id: set-matrix
2323
run: node .github/workflows/list-workspaces.js test:types lint test:unit >> $GITHUB_OUTPUT
2424
types:
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install Node.js
3939
uses: actions/setup-node@v4
4040
with:
41-
node-version: 18
41+
node-version: 20
4242
cache: 'pnpm'
4343
- name: Install dependencies
4444
run: pnpm install
@@ -61,7 +61,7 @@ jobs:
6161
- name: Install Node.js
6262
uses: actions/setup-node@v4
6363
with:
64-
node-version: 18
64+
node-version: 20
6565
cache: 'pnpm'
6666
- name: Install dependencies
6767
run: pnpm install
@@ -84,7 +84,7 @@ jobs:
8484
- name: Install Node.js
8585
uses: actions/setup-node@v4
8686
with:
87-
node-version: 18
87+
node-version: 20
8888
cache: 'pnpm'
8989
- name: Install dependencies
9090
run: pnpm install

.nano-staged.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"*.{js,ts,cjs}": "eslint --fix"
2+
"*.{c,m,}{js,ts}{x,}": "eslint --flag v10_config_lookup_from_file --fix"
33
}

eslint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { globalIgnores } from 'eslint/config'
2+
import baseConfig from '@trigen/eslint-config'
3+
import moduleConfig from '@trigen/eslint-config/module'
4+
import env from '@trigen/eslint-config/env'
5+
6+
export default [
7+
globalIgnores(['**/dist/', '**/package/']),
8+
...baseConfig,
9+
...moduleConfig,
10+
env.node
11+
]

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
3333
"@commitlint/config-conventional": "^19.8.1",
3434
"@commitlint/config-pnpm-scopes": "^19.8.1",
3535
"@commitlint/cz-commitlint": "^19.8.1",
36-
"@trigen/eslint-config": "8.0.0-alpha.33",
37-
"@trigen/scripts": "8.0.0-alpha.33",
38-
"@vitest/coverage-v8": "^3.2.2",
36+
"@trigen/eslint-config": "8.0.2",
37+
"@trigen/scripts": "8.0.0",
38+
"@vitest/coverage-v8": "^3.2.4",
3939
"clean-publish": "5.2.2",
4040
"commitizen": "^4.3.1",
4141
"del-cli": "^6.0.0",
42-
"eslint": "^8.57.1",
42+
"eslint": "^9.30.1",
4343
"nano-staged": "^0.8.0",
4444
"simple-git-hooks": "^2.13.0",
4545
"tsm": "^2.3.0",
4646
"typescript": "5.8.3",
47-
"vite": "^7.0.0",
48-
"vitest": "^3.2.2"
47+
"vite": "^7.0.3",
48+
"vitest": "^3.2.4"
4949
}
5050
}

packages/child-process-utils/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import tsTypeCheckedConfig from '@trigen/eslint-config/typescript-type-checked'
2+
import testConfig from '@trigen/eslint-config/test'
3+
import rootConfig from '../../eslint.config.js'
4+
5+
export default [
6+
...rootConfig,
7+
...tsTypeCheckedConfig,
8+
...testConfig,
9+
{
10+
languageOptions: {
11+
parserOptions: {
12+
projectService: true,
13+
tsconfigRootDir: import.meta.dirname
14+
}
15+
}
16+
}
17+
]

0 commit comments

Comments
 (0)