Skip to content

Commit 37713d5

Browse files
committed
config updates from feedback
1 parent f22c2a0 commit 37713d5

8 files changed

Lines changed: 58 additions & 21 deletions

File tree

.gitignore

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,40 @@ node_modules
1111
.env.development.local
1212
.env.test.local
1313
.env.production.local
14+
local.settings.json
1415

1516
# Testing
1617
coverage
1718

1819
# Turbo
19-
.turbo
20+
.turbo/
2021

2122
# Vercel
22-
.vercel
23+
.vercel/
2324

2425
# Build Outputs
2526
.next/
2627
out/
2728
my-project/
28-
build
29-
dist
29+
build/
30+
dist/
3031
/.cache
3132
.react-router/
3233
/public/build
3334
tsconfig.tsbuildinfo
3435
data-mocks/
3536
*.tgz
37+
*.tsbuildinfo
3638

3739
# Debug
38-
npm-debug.log*
39-
yarn-debug.log*
40-
yarn-error.log*
40+
*.log
4141
vite.config.ts.timestamp-*
42+
.playwright-mcp/
4243

4344
# Misc
4445
.DS_Store
4546
*.pem
4647
.idea/
47-
48+
.mcp.json
4849

4950
catalyst-ui-kit/

template/.gitignore

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,30 @@ coverage
1919
.turbo/
2020

2121
# Vercel
22-
.vercel
22+
.vercel/
2323

2424
# Build Outputs
2525
.next/
2626
out/
27-
build
28-
dist
27+
build/
28+
dist/
2929
/.cache
3030
.react-router/
3131
/public/build
3232
tsconfig.tsbuildinfo
3333
data-mocks/
34+
*.tgz
35+
*.tsbuildinfo
3436

3537
# Debug
36-
npm-debug.log*
37-
yarn-debug.log*
38-
yarn-error.log*
38+
*.log
3939
vite.config.ts.timestamp-*
40+
.playwright-mcp/
4041

4142
# Misc
4243
.DS_Store
4344
*.pem
4445
.idea/
45-
46+
.mcp.json
4647

4748
catalyst-ui-kit/

template/config/eslint/base.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ export default tseslint.config(
5555
'import/no-unresolved': 'off', // does not properly work with nodenext yet.
5656
'import/no-relative-packages': 'error',
5757
'import/no-relative-parent-imports': 'error',
58+
// align with TypeScript style
59+
"@typescript-eslint/no-unused-vars": [
60+
"error",
61+
{
62+
"args": "all",
63+
"argsIgnorePattern": "^_",
64+
"caughtErrors": "all",
65+
"caughtErrorsIgnorePattern": "^_",
66+
"destructuredArrayIgnorePattern": "^_",
67+
"varsIgnorePattern": "^_",
68+
"ignoreRestSiblings": true
69+
}
70+
]
5871
},
5972
},
6073
eslintConfigPrettier,

template/msw/eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export default [
88
tsconfigRootDir: import.meta.dirname,
99
},
1010
},
11-
rules: {'@typescript-eslint/no-unsafe-enum-comparison': 'off'},
11+
rules: {
12+
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
13+
'@typescript-eslint/no-unsafe-assignment': 'off'
14+
},
1215
},
1316
];

template/prototype/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"baseUrl": ".",
55
"types": ["@react-router/node", "vite/client"],
66
"paths": {
7-
"#/*": ["./app/*"]
7+
"#/*": ["./app/*"],
88
},
99
"outDir": "build",
1010
"rootDirs": ["./", "./.react-router/types"]

template/prototype/vite.config.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1+
import path from 'node:path';
2+
import { fileURLToPath } from 'node:url';
13
import { reactRouter } from '@react-router/dev/vite';
24
import { defineConfig } from 'vite';
35
import tsconfigPaths from 'vite-tsconfig-paths';
46

5-
export default defineConfig({
7+
// `.env` lives at the monorepo root, not inside this workspace.
8+
const envDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
9+
10+
export default defineConfig(({ mode }) => ({
11+
envDir,
612
plugins: [reactRouter(), tsconfigPaths()],
713
resolve: {
814
preserveSymlinks: false,
915
},
1016
optimizeDeps: {
11-
exclude: process.env.NODE_ENV === 'development' ? ['@repo/ui'] : [],
17+
exclude: mode === 'development' ? ['@repo/ui'] : [],
1218
},
1319
server: {
1420
watch: {
1521
followSymlinks: true, // Vite beobachtet auch verlinkte Dependencies
1622
},
1723
},
18-
});
24+
}));
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import path from 'node:path';
2+
import { defineConfig } from 'vitest/config';
3+
4+
export default defineConfig({
5+
resolve: {
6+
alias: {
7+
'#': path.resolve(__dirname, 'app'),
8+
},
9+
},
10+
test: {
11+
include: ['app/**/*.test.{ts,tsx}'],
12+
},
13+
});

template/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"dependsOn": ["^typecheck"]
4343
},
4444
"@repo/prototype#build": {
45-
"inputs": ["public/**", "react-router.config.ts", "vite.config.ts", "taiwind.config.js"],
45+
"inputs": ["public/**", "react-router.config.ts", "vite.config.ts", "styles/tailwind.css"],
4646
"dependsOn": ["^@repo/msw#build"],
4747
"outputs": ["build/client/**"],
4848
"env": ["VITE_BUILD_NUMBER", "VITE_VERSION"]

0 commit comments

Comments
 (0)