Skip to content

Commit 829c568

Browse files
committed
Upgrade stuff
1 parent ffabaef commit 829c568

File tree

6 files changed

+1050
-1143
lines changed

6 files changed

+1050
-1143
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.yaml

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

.github/actions/setup/action.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ inputs:
44
node-version:
55
description: "Version of Node.js"
66
required: true
7-
default: "20"
7+
default: "22"
88

99
runs:
1010
using: composite
1111
steps:
12-
- name: Setup pnpm
13-
uses: pnpm/action-setup@v4
14-
with:
15-
version: 9
12+
- name: Setup corepack
13+
run: corepack enable
14+
shell: bash
1615

1716
- uses: actions/setup-node@v4
1817
with:

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
import eslintConfigPrettier from "eslint-config-prettier/flat";
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{ ignores: ["dist", "eslint.config.js"] },
9+
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommendedTypeChecked,
12+
{
13+
languageOptions: {
14+
parserOptions: {
15+
projectService: true,
16+
tsconfigRootDir: import.meta.dirname,
17+
},
18+
},
19+
},
20+
eslintConfigPrettier,
21+
];

package.json

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@
77
"watch": "npm run build -- --watch src",
88
"typecheck": "tsc --noEmit",
99
"prepublishOnly": "npm run build",
10-
"lint": "eslint --cache .",
10+
"lint": "eslint",
1111
"format": "prettier --write . --cache",
1212
"test": "vitest",
1313
"prepare": "husky"
1414
},
1515
"devDependencies": {
16-
"@total-typescript/ts-reset": "^0.5.1",
17-
"@tsconfig/node-lts": "^20.1.3",
18-
"@types/node": "^20.14.2",
19-
"@typescript-eslint/eslint-plugin": "^7.13.0",
20-
"@typescript-eslint/parser": "^7.13.0",
21-
"eslint": "^8.57.0",
22-
"eslint-config-prettier": "^9.1.0",
23-
"husky": "^9.0.11",
24-
"lint-staged": "^15.2.7",
25-
"prettier": "^3.3.2",
26-
"tsup": "^8.1.0",
27-
"vitest": "^1.6.0"
16+
"@eslint/js": "^9.22.0",
17+
"@total-typescript/ts-reset": "^0.6.1",
18+
"@tsconfig/node-lts": "^22.0.1",
19+
"@types/node": "^22.13.10",
20+
"eslint": "^9.22.0",
21+
"eslint-config-prettier": "^10.1.1",
22+
"globals": "^16.0.0",
23+
"husky": "^9.1.7",
24+
"lint-staged": "^15.5.0",
25+
"prettier": "^3.5.3",
26+
"tsup": "^8.4.0",
27+
"typescript-eslint": "^8.26.1",
28+
"vitest": "^3.0.9"
2829
},
2930
"type": "module",
3031
"main": "dist/index.cjs",
@@ -60,10 +61,16 @@
6061
"package.json"
6162
],
6263
"dependencies": {
63-
"typescript": "^5.4.5"
64+
"typescript": "^5.8.2"
6465
},
6566
"lint-staged": {
6667
"*": "prettier --write --ignore-unknown",
6768
"*.ts": "eslint --fix"
69+
},
70+
"packageManager": "pnpm@10.6.4+sha512.da3d715bfd22a9a105e6e8088cfc7826699332ded60c423b14ec613a185f1602206702ff0fe4c438cb15c979081ce4cb02568e364b15174503a63c7a8e2a5f6c",
71+
"pnpm": {
72+
"onlyBuiltDependencies": [
73+
"esbuild"
74+
]
6875
}
6976
}

0 commit comments

Comments
 (0)