Skip to content

Commit a34c92d

Browse files
committed
chore: update deps
migrate to eslint 9, update husky pre-commit
1 parent 0451d43 commit a34c92d

5 files changed

Lines changed: 793 additions & 2564 deletions

File tree

.eslintrc

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

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
pnpm exec lint-staged

eslint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
6+
export default [
7+
{files: ["**/*.{js,mjs,cjs,ts}"]},
8+
{languageOptions: { globals: {...globals.browser, ...globals.node} }},
9+
pluginJs.configs.recommended,
10+
...tseslint.configs.recommended,
11+
];

package.json

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,41 @@
1818
],
1919
"scripts": {
2020
"build": "unbuild",
21-
"lint": "eslint --cache --ext .ts . && prettier -c src test",
22-
"lint:fix": "eslint --cache --ext .ts . --fix && prettier -c src test -w",
21+
"lint": "eslint --cache src test && prettier src test --check",
22+
"lint:fix": "eslint --cache src test --fix && prettier src test --write",
2323
"test:types": "tsc --noEmit --skipLibCheck",
2424
"test": "pnpm lint && pnpm test:types && jest --detectOpenHandles",
25+
"test:dev": "jest --detectOpenHandles",
2526
"prepare": "husky install",
2627
"release": "release-it",
2728
"prepack": "pnpm build"
2829
},
29-
"keywords": ["math","mathflow","js","interpreter"],
30+
"keywords": [
31+
"math",
32+
"mathflow",
33+
"js",
34+
"interpreter"
35+
],
3036
"author": {
3137
"name": "Henry Hale",
3238
"url": "https://github.com/henryhale"
3339
},
3440
"license": "MIT",
3541
"devDependencies": {
36-
"@release-it/conventional-changelog": "^8.0.1",
37-
"@types/jest": "^29.5.11",
38-
"eslint": "^8.56.0",
39-
"eslint-config-unjs": "^0.2.1",
40-
"husky": "^8.0.3",
42+
"@eslint/js": "^9.11.1",
43+
"@release-it/conventional-changelog": "^8.0.2",
44+
"@types/jest": "^29.5.13",
45+
"eslint": "^9.11.1",
46+
"globals": "^15.9.0",
47+
"husky": "^9.1.6",
4148
"jest": "^29.7.0",
42-
"lint-staged": "^15.2.0",
43-
"prettier": "^3.1.1",
44-
"release-it": "^17.0.1",
45-
"ts-jest": "^29.1.1",
46-
"typescript": "^5.3.3",
47-
"unbuild": "^2.0.0",
48-
"vitepress": "1.0.0-rc.35"
49+
"lint-staged": "^15.2.10",
50+
"prettier": "^3.3.3",
51+
"release-it": "^17.6.0",
52+
"ts-jest": "^29.2.5",
53+
"typescript": "5.5.4",
54+
"typescript-eslint": "^8.7.0",
55+
"unbuild": "^2.0.0"
4956
},
5057
"lint-staged": {
5158
"*.ts": "pnpm test"

0 commit comments

Comments
 (0)