chore: add .nvmrc & .node-version for node v22 (#12869)

### What this PR does
Adds a `.nvmrc` & `.node-version` files to the project root to specify
the Node.js version.

Before this PR:
No `.nvmrc` / `.node-version` files were present, which could lead to
inconsistent Node.js versions across different development environments
or CI pipelines.

After this PR:
Both `.nvmrc` & `.node-version` files are included, pinning the Node.js
version to v22.

### Why we need it and why it was done in this way
This ensures that all contributors and CI/CD pipelines use the same
Node.js version (v22), reducing "works on my machine" issues and
ensuring compatibility.

The following tradeoffs were made:
None.

The following alternatives were considered:
Defining the engine in package.json only, but `.nvmrc` / `.node-version`
are widely supported by tools like nvm, fnm and volta for automatic
switching.

### Breaking changes
None.

### Special notes for your reviewer
Simple chore to standardize the dev environment.

### Release note
```release-note
NONE
```
This commit is contained in:
CrazyRabbit 2026-02-11 11:27:38 +02:00 committed by GitHub
parent 6b9e738278
commit aa24e9ea50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

1
.node-version Normal file
View File

@ -0,0 +1 @@
22

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
22