Skip to content

Commit

Permalink
⬆️ Set node-version to latest (#44)
Browse files Browse the repository at this point in the history
* 📌 node-version: latest

* 🔧 Better restrict-template-expressions

* ⬆️ Update deps

* ⬆️ FROM node:22-slim

* 🔧 Add ms-azuretools.vscode-docker to recommended extensions
  • Loading branch information
NatoBoram authored Jun 13, 2024
1 parent 32acedb commit 4bb944a
Show file tree
Hide file tree
Showing 9 changed files with 500 additions and 285 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 21
node-version: latest
cache: pnpm
- run: pnpm install
- run: pnpm run docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 21
node-version: latest
cache: pnpm
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
- run: pnpm run build --noEmit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pnpm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 21
node-version: latest
- run: pnpm install
- run: pnpm build

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pnpm-version-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ jobs:
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 21
node-version: latest
- name: Configure Git, patch, release and push
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config commit.gpgsign true
git config gpg.format ssh
git config push.gpgSign 'if-asked'
git config tag.gpgSign true
git config user.signingkey 'key::${{ vars.DEPLOY_KEY_PUBLIC }}'
eval `ssh-agent -s`
Expand Down
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"ms-azuretools.vscode-docker",
"vitest.explorer"
]
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21-slim AS base
FROM node:22-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
Expand Down
13 changes: 11 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import prettier from "eslint-config-prettier"
import globals from "globals"
import tseslint from "typescript-eslint"

/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access */

export default tseslint.config(
{
Expand Down Expand Up @@ -53,12 +52,22 @@ export default tseslint.config(
{ checkArrowFunctions: false },
],
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowBoolean: true,
allowNullish: true,
allowNumber: true,
allowRegExp: true,
},
],
"@typescript-eslint/return-await": "error",
"@typescript-eslint/sort-type-constituents": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"func-style": ["error", "declaration"],
},
},

{
ignores: [
".pnpm-store/",
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@
},
"devDependencies": {
"@eslint/js": "^9.4.0",
"eslint": "^9.1.1",
"eslint": "^9.4.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.0.0",
"prettier": "^3.2.5",
"tsx": "^4.7.1",
"globals": "^15.4.0",
"prettier": "^3.3.2",
"tsx": "^4.15.3",
"typedoc": "^0.25.13",
"typescript": "5.5.0-beta",
"typescript-eslint": "^7.7.1",
"vitest": "^1.4.0"
"typescript-eslint": "^7.13.0",
"vitest": "^1.6.0"
},
"type": "module",
"exports": {
Expand Down
Loading

0 comments on commit 4bb944a

Please sign in to comment.