Skip to content

chore: use node 22 LTS #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "[email protected].0+sha512.837566d24eec14ec0f5f1411adb544e892b3454255e61fdef8fd05f3429480102806bac7446bc9daff3896b01ae4b62d00096c7e989f1596f2af10b927532f39",
"packageManager": "[email protected].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
Loading