Skip to content

Commit a24a6ea

Browse files
committed
chore: bump eslint to v9
1 parent 1b33042 commit a24a6ea

7 files changed

Lines changed: 233 additions & 167 deletions

File tree

.eslintrc

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

eslint.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// @ts-check Let TS check this config file
2+
import eslint from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
export default tseslint.config(
6+
{
7+
ignores: ["build/**", "dist/**", "node_modules/**", "scripts/"],
8+
},
9+
{
10+
extends: [eslint.configs.recommended, ...tseslint.configs.recommended],
11+
rules: {
12+
"@typescript-eslint/ban-ts-comment": [
13+
"warn",
14+
{
15+
"ts-expect-error": "allow-with-description",
16+
"ts-ignore": "allow-with-description",
17+
"ts-nocheck": "allow-with-description",
18+
"ts-check": "allow-with-description",
19+
},
20+
],
21+
"@typescript-eslint/no-unused-vars": "off",
22+
"@typescript-eslint/no-explicit-any": [
23+
"off",
24+
{
25+
ignoreRestArgs: true,
26+
},
27+
],
28+
"@typescript-eslint/no-non-null-assertion": "off",
29+
},
30+
},
31+
);

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"dev": "unbuild --stub",
77
"build": "tsc --noEmit && unbuild",
8-
"lint": "eslint --max-warnings=0 . && prettier --check .",
9-
"lint:fix": "eslint --fix . && prettier --write .",
8+
"lint": "eslint . & prettier --check .",
9+
"lint:fix": "eslint --fix . & prettier --write .",
1010
"release": "bumpp --commit \"chore(release): publish v%s\"",
1111
"test": "echo \"Error: no test specified\" && exit 1"
1212
},
@@ -82,12 +82,10 @@
8282
"@types/fs-extra": "11.0.4",
8383
"@types/node": "20.12.12",
8484
"@types/update-notifier": "6.0.8",
85-
"@typescript-eslint/eslint-plugin": "7.9.0",
86-
"@typescript-eslint/parser": "7.9.0",
87-
"eslint": "8.57.0",
88-
"eslint-config-prettier": "9.1.0",
85+
"eslint": "9.3.0",
8986
"prettier": "3.2.5",
9087
"typescript": "5.4.5",
88+
"typescript-eslint": "8.0.0-alpha.20",
9189
"unbuild": "2.0.0"
9290
},
9391
"pnpm": {

0 commit comments

Comments
 (0)