Skip to content

Commit dd2231f

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

File tree

17 files changed

+847
-867
lines changed

17 files changed

+847
-867
lines changed

.eslintrc.json

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

.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+
]

packages/child-process-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"prepublishOnly": "run build clear:package clean-publish",
4949
"postpublish": "pnpm clear:package",
5050
"build": "tsc -p tsconfig.build.json",
51-
"lint": "eslint --parser-options tsconfigRootDir:. '**/*.{js,ts}'",
51+
"lint": "eslint",
5252
"test:unit": "vitest run --coverage",
5353
"test:types": "tsc --noEmit",
5454
"test": "run -p lint test:unit test:types"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"extends": "./tsconfig.build.json",
3+
"compilerOptions": {
4+
"allowJs": true
5+
},
36
"include": [
4-
"src"
7+
"src",
8+
"*.js"
59
],
610
"exclude": []
711
}

packages/hosted-git-info/.eslintrc.json

Lines changed: 0 additions & 14 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)