Skip to content

Commit 33cc3f9

Browse files
committed
migrating to react 19
1 parent fcae769 commit 33cc3f9

7 files changed

Lines changed: 3144 additions & 2120 deletions

File tree

eslint.config.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
const typescriptEslint = require('@typescript-eslint/eslint-plugin');
2+
const reactHooks = require('eslint-plugin-react-hooks');
3+
const reactRefresh = require('eslint-plugin-react-refresh');
4+
const storybook = require('eslint-plugin-storybook');
5+
6+
module.exports = [
7+
{
8+
files: ['**/*.ts', '**/*.tsx'],
9+
languageOptions: {
10+
parser: require('@typescript-eslint/parser'),
11+
parserOptions: {
12+
ecmaVersion: 2020,
13+
sourceType: 'module',
14+
},
15+
globals: {
16+
browser: true,
17+
},
18+
},
19+
plugins: {
20+
'@typescript-eslint': typescriptEslint,
21+
'react-hooks': reactHooks,
22+
'react-refresh': reactRefresh,
23+
storybook: storybook,
24+
},
25+
settings: {
26+
react: {
27+
version: 'detect',
28+
},
29+
},
30+
rules: {
31+
...require('eslint-config-recommended').rules,
32+
...typescriptEslint.configs.recommended.rules,
33+
...reactHooks.configs.recommended.rules,
34+
...storybook.configs.recommended.rules,
35+
'no-unused-vars': 'warn',
36+
'no-var': 'error',
37+
'react-refresh/only-export-components': [
38+
'warn',
39+
{ allowConstantExport: true },
40+
],
41+
},
42+
},
43+
{
44+
ignores: ['dist', '.eslintrc.cjs'],
45+
},
46+
];

package.json

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "react-boilerplate",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "tsc && nx vite:build",
@@ -15,28 +16,29 @@
1516
},
1617
"dependencies": {
1718
"@radix-ui/react-slot": "^1.0.2",
18-
"@tanstack/react-query": "^5.8.1",
19+
"@tanstack/react-query": "^5.66.9",
1920
"@types/dexie": "^1.3.1",
2021
"@types/react-router-dom": "^5.3.3",
2122
"autoprefixer": "^10.4.16",
2223
"class-variance-authority": "^0.7.0",
2324
"clsx": "^2.0.0",
2425
"dexie": "^3.2.4",
25-
"lucide-react": "^0.292.0",
26+
"install": "^0.13.0",
27+
"lucide-react": "^0.475.0",
2628
"postcss": "^8.4.31",
27-
"react": "^18.3.0",
28-
"react-dom": "^18.3.0",
29-
"react-router-dom": "^6.18.0",
29+
"react": "^19.0.0",
30+
"react-dom": "^19.0.0",
31+
"react-router": "^7.2.0",
3032
"tailwind-merge": "^2.0.0",
3133
"tailwindcss": "^3.3.5",
3234
"tailwindcss-animate": "^1.0.7",
3335
"vite": "^5.4.11"
3436
},
3537
"devDependencies": {
36-
"@betterer/betterer": "5.4.0",
37-
"@betterer/cli": "5.4.0",
38-
"@betterer/eslint": "5.4.0",
39-
"@betterer/typescript": "5.4.0",
38+
"@betterer/betterer": "6.0.0-alpha.1",
39+
"@betterer/cli": "6.0.0-alpha.1",
40+
"@betterer/eslint": "6.0.0-alpha.1",
41+
"@betterer/typescript": "6.0.0-alpha.1",
4042
"@chromatic-com/storybook": "^3.2.3",
4143
"@nx/eslint": "20.1.4",
4244
"@nx/playwright": "20.1.4",
@@ -53,21 +55,22 @@
5355
"@storybook/react-vite": "^8.4.7",
5456
"@storybook/test": "^8.4.7",
5557
"@tanstack/eslint-plugin-query": "^5.6.0",
56-
"@types/node": "^20.9.0",
57-
"@types/react": "^18.3",
58-
"@types/react-dom": "^18.3",
59-
"@typescript-eslint/eslint-plugin": "^6.0.0",
60-
"@typescript-eslint/parser": "^6.0.0",
58+
"@types/node": "^20.17.19",
59+
"@types/react": "^19.0.10",
60+
"@types/react-dom": "^19.0.4",
61+
"@typescript-eslint/eslint-plugin": "^8.24.1",
62+
"@typescript-eslint/parser": "^8.24.1",
6163
"@vitejs/plugin-react-swc": "^3.7.2",
6264
"@vitest/ui": "^1.3.1",
63-
"eslint": "^8.45.0",
64-
"eslint-plugin-react-hooks": "^4.6.0",
65-
"eslint-plugin-react-refresh": "^0.4.3",
66-
"eslint-plugin-storybook": "^0.11.1",
65+
"eslint": "^8.57.0",
66+
"eslint-config-recommended": "^4.1.0",
67+
"eslint-plugin-react-hooks": "^5.1.0",
68+
"eslint-plugin-react-refresh": "^0.4.19",
69+
"eslint-plugin-storybook": "^0.11.3",
6770
"nx": "20.1.4",
6871
"storybook": "^8.4.7",
6972
"ts-node": "^10.9.2",
70-
"typescript": "^5.3.3",
73+
"typescript": "^5.7.3",
7174
"vitest": "^1.3.1"
7275
},
7376
"nx": {}

0 commit comments

Comments
 (0)