Skip to content

Commit a90b430

Browse files
committed
get everything working
1 parent bdef8dc commit a90b430

23 files changed

+454
-666
lines changed

src/ui/.eslintrc.json renamed to .eslintrc.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,13 @@
1313
"plugin:@typescript-eslint/recommended",
1414
"plugin:prettier/recommended"
1515
],
16-
"ignorePatterns": [".vscode"],
1716
"parser": "@typescript-eslint/parser",
1817
"parserOptions": {
1918
"ecmaFeatures": {
2019
"jsx": true
2120
},
2221
"ecmaVersion": 2024,
23-
"project": [
24-
"src/ui/tsconfig.json",
25-
"src/ui/tsconfig.test.json",
26-
"src/ui/tsconfig.cypress.json"
27-
],
22+
"project": ["src/ui/tsconfig.json", "tsconfig.test.json", "tsconfig.cypress.json"],
2823
"sourceType": "module"
2924
},
3025
"plugins": ["@typescript-eslint", "import", "jest", "no-secrets", "react"],
@@ -42,5 +37,5 @@
4237
"import/no-extraneous-dependencies": ["error"],
4338
"no-secrets/no-secrets": ["error", { "additionalRegexes": {}, "ignoreContent": [] }]
4439
},
45-
"settings": { "next": { "rootDir": ["src/ui/"] } }
40+
"settings": { "next": { "rootDir": ["src/ui/", "tests/ui/"] } }
4641
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,13 @@ yarn-error.log*
214214
src/ui/.vercel
215215

216216
# typescript
217-
src/ui/*.tsbuildinfo
217+
*.tsbuildinfo
218218
src/ui/next-env.d.ts
219219

220220
# Root-level UI config files that should be tracked
221221
!package.json
222222
!package-lock.json
223223
!.eslintrc.json
224+
!tsconfig.json
224225
!tsconfig.*.json
226+
!src/ui/public/manifest.json

.prettierignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# === Don't touch ===
2+
*.md
3+
*.mdx
4+
*.yaml
5+
*.yml
6+
7+
# === Skip all JSON …
8+
*.json
9+
10+
# === include relevant json ===
11+
!src/ui/**/*.json
12+
!tests/ui/**/*.json
13+
14+
# Root-level configs to format
15+
!/.eslintrc.json
16+
!/tsconfig*.json
17+
!/*.config.{js,ts}
18+
!/jest.setup.ts
File renamed without changes.

cypress.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
e2e: {
5+
specPattern: 'tests/ui/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
6+
supportFile: 'tests/ui/cypress/support/e2e.ts',
7+
baseUrl: 'http://localhost:3000', // optional, but good practice
8+
},
9+
});

src/ui/jest.config.js renamed to jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const nextJest = require('next/jest');
22

33
const createJestConfig = nextJest({
4-
dir: __dirname,
4+
dir: './src/ui',
55
});
66

77
const customJestConfig = {
File renamed without changes.

0 commit comments

Comments
 (0)