Skip to content

Commit 2e597b0

Browse files
committed
merge base
2 parents d0bd7db + c02f701 commit 2e597b0

File tree

7 files changed

+5
-25
lines changed

7 files changed

+5
-25
lines changed

cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export default defineConfig({
44
e2e: {
55
specPattern: 'tests/ui/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
66
supportFile: 'tests/ui/cypress/support/e2e.ts',
7-
baseUrl: 'http://localhost:3000', // optional, but good practice
7+
baseUrl: 'http://localhost:3000', // optional
88
},
99
});

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default tseslint.config(
2727
},
2828

2929
// 2. Base Configurations (Applied to all files)
30-
// These configs are NOT type-aware and are safe to apply globally.
3130
eslint.configs.recommended,
3231
prettierConfig, // Disables ESLint rules that conflict with Prettier. IMPORTANT: Must be after other configs.
3332

@@ -93,6 +92,7 @@ export default tseslint.config(
9392
'react/prop-types': 'off',
9493

9594
'@next/next/no-html-link-for-pages': 'off',
95+
'@next/next/no-img-element': 'off',
9696

9797
complexity: ['warn', { max: 8 }],
9898
},

package-lock.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "next dev src/ui",
77
"build": "next build src/ui",
8-
"lint": "next lint src/ui",
8+
"lint": "next lint --fix src/ui",
99
"type-check": "tsc -p src/ui/tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.cypress.json --noEmit",
1010
"format": "prettier --write .",
1111
"prepare": "husky",

src/ui/next.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-explicit-any */
21
import type { NextConfig } from 'next';
32

43
const nextConfig: NextConfig = {

tsconfig.base.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"compilerOptions": {
4-
/* --- language / emit --- */
54
"target": "ES2022",
65
"lib": ["dom", "dom.iterable", "esnext"],
76
"module": "esnext",
87
"jsx": "preserve",
98
"incremental": true,
109
"noEmit": true,
11-
12-
/* --- module resolution --- */
1310
"moduleResolution": "node",
1411
"baseUrl": ".",
1512
"paths": {
@@ -20,8 +17,6 @@
2017
"esModuleInterop": true,
2118
"allowSyntheticDefaultImports": true,
2219
"plugins": [{ "name": "next" }],
23-
24-
/* --- correctness / style --- */
2520
"strict": true,
2621
"skipLibCheck": true,
2722
"forceConsistentCasingInFileNames": true,

tsconfig.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
{
22
"extends": "./tsconfig.base.json",
3-
4-
/* Extra options that apply only to Node-side files */
53
"compilerOptions": {
6-
"types": ["node"], // Buffer, process, __dirname, etc.
4+
"types": ["node"],
75
"allowJs": false,
86
"isolatedModules": true
97
},
10-
11-
/* Narrow include so we don’t compile the entire repo twice */
12-
"include": [
13-
"*.ts",
14-
"*.cts",
15-
"*.mts", // a couple of root-level scripts
16-
"scripts/**/*",
17-
"types/**/*"
18-
],
19-
20-
/* Don’t touch the Next.js source or tests from here */
8+
"include": ["*.ts", "*.cts", "*.mts", "scripts/**/*", "types/**/*"],
219
"exclude": ["src/ui", "tests", "node_modules"]
2210
}

0 commit comments

Comments
 (0)