Skip to content

Commit 892bb81

Browse files
committed
chore: update eslint config
1 parent 19b989c commit 892bb81

File tree

5 files changed

+49
-32
lines changed

5 files changed

+49
-32
lines changed

.eslintignore

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

.eslintrc.js

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

eslint.config.mjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {
2+
globalIgnores,
3+
} from "eslint/config";
4+
5+
import tselint from "typescript-eslint";
6+
import js from "@eslint/js";
7+
8+
export default tselint.config([
9+
js.configs.recommended,
10+
tselint.configs.strict,
11+
{
12+
languageOptions: {
13+
parser: tselint.parser,
14+
"ecmaVersion": 2021,
15+
"sourceType": "module",
16+
parserOptions: {},
17+
},
18+
19+
plugins: {
20+
"@typescript-eslint": tselint.plugin,
21+
},
22+
23+
"rules": {
24+
"@typescript-eslint/no-explicit-any": "off",
25+
},
26+
}, globalIgnores(["**/dist/", "**/lib/", "**/node_modules/"])]);

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
"@actions/core": "^1.10.1"
2626
},
2727
"devDependencies": {
28+
"@eslint/js": "^9.34.0",
2829
"@types/jest": "^29.5.5",
2930
"@types/node": "^20.6.4",
30-
"@typescript-eslint/eslint-plugin": "^8.0.0",
31-
"@typescript-eslint/parser": "^8.0.0",
3231
"@vercel/ncc": "^0.38.0",
3332
"eslint": "^9.0.0",
3433
"eslint-plugin-jest": "^28.0.0",
3534
"eslint-plugin-prettier": "^5.0.0",
3635
"jest": "^29.7.0",
3736
"prettier": "^3.0.3",
3837
"ts-jest": "^29.1.1",
39-
"typescript": "^5.2.2"
38+
"typescript": "^5.2.2",
39+
"typescript-eslint": "^8.41.0"
4040
},
4141
"packageManager": "[email protected]"
4242
}

yarn.lock

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ __metadata:
577577
languageName: node
578578
linkType: hard
579579

580-
"@eslint/js@npm:9.34.0":
580+
"@eslint/js@npm:9.34.0, @eslint/js@npm:^9.34.0":
581581
version: 9.34.0
582582
resolution: "@eslint/js@npm:9.34.0"
583583
checksum: 10c0/53f1bfd2a374683d9382a6850354555f6e89a88416c34a5d34e9fbbaf717e97c2b06300e8f93e5eddba8bda8951ccab7f93a680e56ded1a3d21d526019e69bab
@@ -1230,7 +1230,7 @@ __metadata:
12301230
languageName: node
12311231
linkType: hard
12321232

1233-
"@typescript-eslint/eslint-plugin@npm:^8.0.0":
1233+
"@typescript-eslint/eslint-plugin@npm:8.41.0":
12341234
version: 8.41.0
12351235
resolution: "@typescript-eslint/eslint-plugin@npm:8.41.0"
12361236
dependencies:
@@ -1251,7 +1251,7 @@ __metadata:
12511251
languageName: node
12521252
linkType: hard
12531253

1254-
"@typescript-eslint/parser@npm:^8.0.0":
1254+
"@typescript-eslint/parser@npm:8.41.0":
12551255
version: 8.41.0
12561256
resolution: "@typescript-eslint/parser@npm:8.41.0"
12571257
dependencies:
@@ -1408,10 +1408,9 @@ __metadata:
14081408
resolution: "action-regex-match@workspace:."
14091409
dependencies:
14101410
"@actions/core": "npm:^1.10.1"
1411+
"@eslint/js": "npm:^9.34.0"
14111412
"@types/jest": "npm:^29.5.5"
14121413
"@types/node": "npm:^20.6.4"
1413-
"@typescript-eslint/eslint-plugin": "npm:^8.0.0"
1414-
"@typescript-eslint/parser": "npm:^8.0.0"
14151414
"@vercel/ncc": "npm:^0.38.0"
14161415
eslint: "npm:^9.0.0"
14171416
eslint-plugin-jest: "npm:^28.0.0"
@@ -1420,6 +1419,7 @@ __metadata:
14201419
prettier: "npm:^3.0.3"
14211420
ts-jest: "npm:^29.1.1"
14221421
typescript: "npm:^5.2.2"
1422+
typescript-eslint: "npm:^8.41.0"
14231423
languageName: unknown
14241424
linkType: soft
14251425

@@ -4785,6 +4785,21 @@ __metadata:
47854785
languageName: node
47864786
linkType: hard
47874787

4788+
"typescript-eslint@npm:^8.41.0":
4789+
version: 8.41.0
4790+
resolution: "typescript-eslint@npm:8.41.0"
4791+
dependencies:
4792+
"@typescript-eslint/eslint-plugin": "npm:8.41.0"
4793+
"@typescript-eslint/parser": "npm:8.41.0"
4794+
"@typescript-eslint/typescript-estree": "npm:8.41.0"
4795+
"@typescript-eslint/utils": "npm:8.41.0"
4796+
peerDependencies:
4797+
eslint: ^8.57.0 || ^9.0.0
4798+
typescript: ">=4.8.4 <6.0.0"
4799+
checksum: 10c0/e141ffaf0332053483526a31e68755fe1438f6367571f39e67e32c0e15d509e8678adab2020597720b0307360493724d8dcf60d0620611d7e1e209d7f952cfe9
4800+
languageName: node
4801+
linkType: hard
4802+
47884803
"typescript@npm:^5.2.2":
47894804
version: 5.9.2
47904805
resolution: "typescript@npm:5.9.2"

0 commit comments

Comments
 (0)