Skip to content

Commit 55bef04

Browse files
chore: use node 22 LTS
1 parent 6320107 commit 55bef04

File tree

4 files changed

+152
-433
lines changed

4 files changed

+152
-433
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- run: corepack enable
1010
- uses: actions/setup-node@v4
1111
with:
12-
node-version: 20
12+
node-version: 22
1313
cache: yarn
1414
- run: yarn install --immutable
1515
- run: yarn format:check

README.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TypeScript template repository with typescript-eslint (airbnb config) and ts-nod
99
Dependabot keeps the dependencies up to date.
1010

1111
- **Build tool**: yarn (can be replaced with npm: `rm yarn.lock && npm install`)
12-
- **Target Node version**: 18.x (es2023)
12+
- **Target Node version**: 22.x ([es2023](https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping))
1313
- **Structure**: `src/` for TypeScript source files and `build/` for output
1414
- Also includes a default `.editorconfig` with 2-space indents
1515

@@ -24,17 +24,4 @@ Scripts:
2424

2525
## use with react
2626

27-
```diff
28-
diff --git a/.eslintrc b/.eslintrc
29-
index e755856..bbaeee5 100644
30-
--- a/.eslintrc
31-
+++ b/.eslintrc
32-
@@ -1,3 +1,6 @@
33-
{
34-
- "extends": ["./node_modules/@nihalgonsalves/esconfig/.eslintrc"]
35-
+ "extends": [
36-
+ "./node_modules/@nihalgonsalves/esconfig/.eslintrc",
37-
+ "./node_modules/@nihalgonsalves/esconfig/.eslintrc.react"
38-
+ ]
39-
}
40-
```
27+
See <https://github.com/nihalgonsalves/esconfig>

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"author": "",
77
"license": "",
8-
"packageManager": "[email protected].0+sha512.837566d24eec14ec0f5f1411adb544e892b3454255e61fdef8fd05f3429480102806bac7446bc9daff3896b01ae4b62d00096c7e989f1596f2af10b927532f39",
8+
"packageManager": "[email protected].1+sha512.341db9396b6e289fecc30cd7ab3af65060e05ebff4b3b47547b278b9e67b08f485ecd8c79006b405446262142c7a38154445ef7f17c1d5d1de7d90bf9ce7054d",
99
"scripts": {
1010
"dev": "tsx src/index.ts",
1111
"start": "NODE_ENV=production node build/index.js",
@@ -16,13 +16,13 @@
1616
"format:check": "prettier . --check"
1717
},
1818
"devDependencies": {
19-
"@nihalgonsalves/esconfig": "^0.10.13",
20-
"@types/node": "20",
21-
"eslint": "^9.13.0",
19+
"@nihalgonsalves/esconfig": "^0.10.14",
20+
"@types/node": "^22",
21+
"eslint": "^9.14.0",
2222
"lefthook": "^1.8.2",
2323
"prettier": "^3.3.3",
2424
"tsx": "^4.19.2",
2525
"typescript": "^5.6.3",
26-
"typescript-eslint": "^8.12.2"
26+
"typescript-eslint": "^8.13.0"
2727
}
2828
}

0 commit comments

Comments
 (0)