Skip to content

Commit

Permalink
chore: use node 22 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalgonsalves committed Nov 8, 2024
1 parent 6320107 commit 55bef04
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 433 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: yarn
- run: yarn install --immutable
- run: yarn format:check
Expand Down
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TypeScript template repository with typescript-eslint (airbnb config) and ts-nod
Dependabot keeps the dependencies up to date.

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

Expand All @@ -24,17 +24,4 @@ Scripts:

## use with react

```diff
diff --git a/.eslintrc b/.eslintrc
index e755856..bbaeee5 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,3 +1,6 @@
{
- "extends": ["./node_modules/@nihalgonsalves/esconfig/.eslintrc"]
+ "extends": [
+ "./node_modules/@nihalgonsalves/esconfig/.eslintrc",
+ "./node_modules/@nihalgonsalves/esconfig/.eslintrc.react"
+ ]
}
```
See <https://github.com/nihalgonsalves/esconfig>
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"author": "",
"license": "",
"packageManager": "yarn@4.5.0+sha512.837566d24eec14ec0f5f1411adb544e892b3454255e61fdef8fd05f3429480102806bac7446bc9daff3896b01ae4b62d00096c7e989f1596f2af10b927532f39",
"packageManager": "yarn@4.5.1+sha512.341db9396b6e289fecc30cd7ab3af65060e05ebff4b3b47547b278b9e67b08f485ecd8c79006b405446262142c7a38154445ef7f17c1d5d1de7d90bf9ce7054d",
"scripts": {
"dev": "tsx src/index.ts",
"start": "NODE_ENV=production node build/index.js",
Expand All @@ -16,13 +16,13 @@
"format:check": "prettier . --check"
},
"devDependencies": {
"@nihalgonsalves/esconfig": "^0.10.13",
"@types/node": "20",
"eslint": "^9.13.0",
"@nihalgonsalves/esconfig": "^0.10.14",
"@types/node": "^22",
"eslint": "^9.14.0",
"lefthook": "^1.8.2",
"prettier": "^3.3.3",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2"
"typescript-eslint": "^8.13.0"
}
}
Loading

0 comments on commit 55bef04

Please sign in to comment.