Skip to content

Commit 5a02f27

Browse files
committed
ci: upgrade to eslint v9
1 parent 7094ae3 commit 5a02f27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+803
-760
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
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",
36+
"@trigen/eslint-config": "^8.0.3",
37+
"@trigen/scripts": "^8.0.0",
3838
"@vitest/coverage-v8": "^3.0.0",
3939
"clean-publish": "5.2.2",
4040
"commitizen": "^4.2.4",
4141
"del-cli": "^6.0.0",
42-
"eslint": "^8.28.0",
42+
"eslint": "^9.30.1",
4343
"nano-staged": "^0.8.0",
4444
"simple-git-hooks": "^2.7.0",
4545
"tsm": "^2.3.0",

packages/ci/.eslintrc.json

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

packages/ci/eslint.config.js

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/ci/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"node": ">=18"
2626
},
2727
"scripts": {
28-
"lint": "eslint --parser-options tsconfigRootDir:. '**/*.{js,ts}'",
28+
"lint": "eslint",
2929
"test:types": "tsc --noEmit",
3030
"test": "run -p lint test:types"
3131
},

packages/ci/tsconfig.json

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/config/.eslintrc.json

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

packages/config/eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
rules: {
17+
'@typescript-eslint/naming-convention': 'off',
18+
'@typescript-eslint/no-explicit-any': 'off',
19+
'@typescript-eslint/no-unsafe-call': 'off',
20+
'@typescript-eslint/no-unsafe-return': 'off'
21+
}
22+
}
23+
]

0 commit comments

Comments
 (0)