Skip to content

Commit ee02862

Browse files
committed
Upgrades Node.js to 22.20.0 and updates dependencies to latest versions for improved compatibility.
1 parent 0b57d9f commit ee02862

File tree

7 files changed

+2211
-1375
lines changed

7 files changed

+2211
-1375
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v22.20.0

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18 as builder
1+
FROM node:22.20.0 as builder
22

33
RUN mkdir -p /workspace/app && chown node:node /workspace -R
44

@@ -11,7 +11,7 @@ COPY --chown=node:node . /workspace/app
1111

1212
RUN npm install && npm run build
1313

14-
FROM node:18
14+
FROM node:22.20.0
1515

1616
RUN npm i -g serve
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npx degit quavedev/react-vite-tailwindcss-template your-project
1212
npm install
1313
```
1414

15-
> You can make sure you are running Node.js 18 with `nvm`. Run `nvm use` to set the Node.js 18 in this project.
15+
> You can make sure you are running Node.js 22 with `nvm`. Run `nvm use` to set the Node.js 22 in this project.
1616
1717
## Develop
1818

eslint.config.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import js from '@eslint/js';
2+
import react from 'eslint-plugin-react';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import reactRefresh from 'eslint-plugin-react-refresh';
5+
import globals from 'globals';
6+
7+
export default [
8+
{
9+
files: ['**/*.{js,jsx}'],
10+
languageOptions: {
11+
ecmaVersion: 'latest',
12+
sourceType: 'module',
13+
globals: {
14+
...globals.browser,
15+
...globals.es2020,
16+
},
17+
parserOptions: {
18+
ecmaFeatures: {
19+
jsx: true,
20+
},
21+
},
22+
},
23+
settings: {
24+
react: {
25+
version: '19.1',
26+
},
27+
},
28+
plugins: {
29+
react,
30+
'react-hooks': reactHooks,
31+
'react-refresh': reactRefresh,
32+
},
33+
rules: {
34+
...js.configs.recommended.rules,
35+
...react.configs.recommended.rules,
36+
...react.configs['jsx-runtime'].rules,
37+
...reactHooks.configs.recommended.rules,
38+
'react-refresh/only-export-components': 'warn',
39+
'react/prop-types': 'off',
40+
},
41+
},
42+
];

0 commit comments

Comments
 (0)