Skip to content

Commit 4b7ae78

Browse files
committed
chore: Update dependencies
1 parent a93a7c9 commit 4b7ae78

File tree

5 files changed

+5310
-4143
lines changed

5 files changed

+5310
-4143
lines changed

.eslintignore

-14
This file was deleted.

.eslintrc.cjs

-85
This file was deleted.

eslint.config.mjs

+147
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
import globals from 'globals';
2+
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
3+
import react from 'eslint-plugin-react';
4+
import jsxA11Y from 'eslint-plugin-jsx-a11y';
5+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
6+
import _import from 'eslint-plugin-import';
7+
import tsParser from '@typescript-eslint/parser';
8+
import path from 'node:path';
9+
import { fileURLToPath } from 'node:url';
10+
import js from '@eslint/js';
11+
import { FlatCompat } from '@eslint/eslintrc';
12+
13+
const __filename = fileURLToPath(import.meta.url);
14+
const __dirname = path.dirname(__filename);
15+
const compat = new FlatCompat({
16+
baseDirectory: __dirname,
17+
recommendedConfig: js.configs.recommended,
18+
allConfig: js.configs.all,
19+
});
20+
21+
export default [
22+
{
23+
ignores: [
24+
'!**/.server',
25+
'!**/.client',
26+
'**/.DS_Store',
27+
'**/node_modules',
28+
'build',
29+
'coverage',
30+
'dist',
31+
'package',
32+
'public',
33+
'**/.env',
34+
'**/.env.*',
35+
'!**/.env.example',
36+
'**/pnpm-lock.yaml',
37+
'**/package-lock.json',
38+
'**/yarn.lock',
39+
],
40+
},
41+
...compat.extends('eslint:recommended'),
42+
{
43+
languageOptions: {
44+
globals: {
45+
...globals.browser,
46+
...globals.commonjs,
47+
},
48+
49+
ecmaVersion: 'latest',
50+
sourceType: 'module',
51+
52+
parserOptions: {
53+
ecmaFeatures: {
54+
jsx: true,
55+
},
56+
},
57+
},
58+
},
59+
...fixupConfigRules(
60+
compat.extends(
61+
'plugin:react/recommended',
62+
'plugin:react/jsx-runtime',
63+
'plugin:react-hooks/recommended',
64+
'plugin:jsx-a11y/recommended'
65+
)
66+
).map((config) => ({
67+
...config,
68+
files: ['**/*.{js,jsx,ts,tsx}'],
69+
})),
70+
{
71+
files: ['**/*.{js,jsx,ts,tsx}'],
72+
73+
plugins: {
74+
'react': fixupPluginRules(react),
75+
'jsx-a11y': fixupPluginRules(jsxA11Y),
76+
},
77+
78+
settings: {
79+
'react': {
80+
version: 'detect',
81+
},
82+
83+
'formComponents': ['Form'],
84+
85+
'linkComponents': [
86+
{
87+
name: 'Link',
88+
linkAttribute: 'to',
89+
},
90+
{
91+
name: 'NavLink',
92+
linkAttribute: 'to',
93+
},
94+
],
95+
96+
'import/resolver': {
97+
typescript: {},
98+
},
99+
},
100+
},
101+
...fixupConfigRules(
102+
compat.extends(
103+
'plugin:@typescript-eslint/recommended',
104+
'plugin:import/recommended',
105+
'plugin:import/typescript',
106+
'prettier'
107+
)
108+
).map((config) => ({
109+
...config,
110+
files: ['**/*.{ts,tsx}'],
111+
})),
112+
{
113+
files: ['**/*.{ts,tsx}'],
114+
115+
plugins: {
116+
'@typescript-eslint': fixupPluginRules(typescriptEslint),
117+
'import': fixupPluginRules(_import),
118+
},
119+
120+
languageOptions: {
121+
parser: tsParser,
122+
},
123+
124+
settings: {
125+
'import/internal-regex': '^~/',
126+
127+
'import/resolver': {
128+
node: {
129+
extensions: ['.ts', '.tsx'],
130+
},
131+
132+
typescript: {
133+
alwaysTryTypes: true,
134+
},
135+
},
136+
},
137+
},
138+
{
139+
files: ['**/.eslintrc.cjs'],
140+
141+
languageOptions: {
142+
globals: {
143+
...globals.node,
144+
},
145+
},
146+
},
147+
];

package.json

+39-35
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,61 @@
11
{
2-
"name": "my-remix-app",
2+
"name": "sample-front",
33
"private": true,
44
"sideEffects": false,
55
"type": "module",
66
"scripts": {
7-
"dev": "remix vite:dev",
87
"build": "remix vite:build",
9-
"start": "remix-serve ./build/server/index.js",
10-
"lint": "prettier --check . && eslint .",
11-
"typecheck": "tsc",
8+
"dev": "remix vite:dev",
9+
"e2e": "playwright test",
10+
"e2e:ui": "playwright test --ui",
1211
"format": "prettier --write .",
12+
"lint": "prettier --check . && eslint .",
13+
"start": "remix-serve ./build/server/index.js",
1314
"test": "vitest run --coverage",
1415
"test:ui": "vitest --ui --coverage",
15-
"e2e": "playwright test",
16-
"e2e:ui": "playwright test --ui"
16+
"typecheck": "tsc"
1717
},
1818
"dependencies": {
19-
"@remix-run/node": "^2.8.1",
20-
"@remix-run/react": "^2.8.1",
21-
"@remix-run/serve": "^2.8.1",
22-
"isbot": "^5.1.4",
23-
"react": "^18.2.0",
24-
"react-dom": "^18.2.0"
19+
"@remix-run/node": "^2.11.2",
20+
"@remix-run/react": "^2.11.2",
21+
"@remix-run/serve": "^2.11.2",
22+
"isbot": "^5.1.16",
23+
"react": "^18.3.1",
24+
"react-dom": "^18.3.1"
2525
},
2626
"devDependencies": {
27-
"@playwright/test": "^1.39.0",
28-
"@remix-run/dev": "^2.8.1",
27+
"@eslint/compat": "^1.1.1",
28+
"@eslint/eslintrc": "^3.1.0",
29+
"@eslint/js": "^9.9.0",
30+
"@playwright/test": "^1.46.1",
31+
"@remix-run/dev": "^2.11.2",
2932
"@tailwindcss/aspect-ratio": "^0.4.2",
3033
"@tailwindcss/container-queries": "^0.1.1",
3134
"@tailwindcss/forms": "^0.5.6",
32-
"@tailwindcss/typography": "^0.5.10",
33-
"@types/react": "^18.2.20",
34-
"@types/react-dom": "^18.2.7",
35-
"@typescript-eslint/eslint-plugin": "^7.5.0",
36-
"@typescript-eslint/parser": "^7.5.0",
37-
"@vitest/coverage-v8": "^1.4.0",
38-
"@vitest/ui": "^1.4.0",
39-
"autoprefixer": "^10.4.16",
40-
"eslint": "^8.38.0",
35+
"@tailwindcss/typography": "^0.5.14",
36+
"@types/react": "^18.3.3",
37+
"@types/react-dom": "^18.3.0",
38+
"@typescript-eslint/eslint-plugin": "^8.1.0",
39+
"@typescript-eslint/parser": "^8.1.0",
40+
"@vitest/coverage-v8": "^2.0.5",
41+
"@vitest/ui": "^2.0.5",
42+
"autoprefixer": "^10.4.20",
43+
"eslint": "^9.9.0",
4144
"eslint-config-prettier": "^9.0.0",
4245
"eslint-import-resolver-typescript": "^3.6.1",
4346
"eslint-plugin-import": "^2.28.1",
44-
"eslint-plugin-jsx-a11y": "^6.7.1",
45-
"eslint-plugin-react": "^7.33.2",
46-
"eslint-plugin-react-hooks": "^4.6.0",
47-
"prettier": "^3.0.3",
48-
"prettier-plugin-multiline-arrays": "^3.0.0",
49-
"prettier-plugin-tailwindcss": "^0.5.6",
50-
"tailwindcss": "^3.3.3",
51-
"typescript": "^5.1.6",
52-
"vite": "^5.1.0",
53-
"vite-tsconfig-paths": "^4.2.1",
54-
"vitest": "^1.4.0"
47+
"eslint-plugin-jsx-a11y": "^6.9.0",
48+
"eslint-plugin-react": "^7.35.0",
49+
"eslint-plugin-react-hooks": "^4.6.2",
50+
"globals": "^15.9.0",
51+
"prettier": "^3.3.3",
52+
"prettier-plugin-multiline-arrays": "^3.0.6",
53+
"prettier-plugin-tailwindcss": "^0.6.6",
54+
"tailwindcss": "^3.4.10",
55+
"typescript": "^5.5.4",
56+
"vite": "^5.4.1",
57+
"vite-tsconfig-paths": "^5.0.1",
58+
"vitest": "^2.0.5"
5559
},
5660
"engines": {
5761
"node": ">=18.0.0"

0 commit comments

Comments
 (0)