Skip to content

Commit ec6bbdb

Browse files
committed
update Next.js projects
1 parent 059b094 commit ec6bbdb

20 files changed

+179
-180
lines changed

examples/nextjs-app/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/nextjs-app/app/components/AppShellBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const THEMES = [
2929
export function AppShellBar() {
3030
const router = useRouter();
3131
const pathname = usePathname();
32-
const popoverOpenerRef = useRef<ButtonDomRef | undefined>(undefined);
32+
const popoverOpenerRef = useRef<ButtonDomRef>(null);
3333
const [popoverOpen, setPopoverOpen] = useState(false);
3434
const [currentTheme, setCurrentTheme] = useState(getTheme);
3535

@@ -64,6 +64,7 @@ export function AppShellBar() {
6464
<ResponsivePopover
6565
className={classes.popover}
6666
open={popoverOpen}
67+
/* eslint-disable-next-line react-hooks/refs */
6768
opener={popoverOpenerRef.current}
6869
onClose={() => {
6970
setPopoverOpen(false);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from 'eslint/config';
2+
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
3+
import nextTypescript from 'eslint-config-next/typescript';
4+
import path from 'node:path';
5+
import { fileURLToPath } from 'node:url';
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
10+
export default defineConfig([
11+
{
12+
extends: [...nextCoreWebVitals, ...nextTypescript],
13+
},
14+
]);

examples/nextjs-app/package-lock.json

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

examples/nextjs-app/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "eslint ."
1010
},
1111
"dependencies": {
1212
"@ui5/webcomponents": "2.15.1",
1313
"@ui5/webcomponents-base": "2.15.1",
1414
"@ui5/webcomponents-fiori": "2.15.1",
1515
"@ui5/webcomponents-react": "2.15.3",
1616
"@types/node": "22.18.10",
17-
"@types/react": "19.1.17",
18-
"@types/react-dom": "19.1.11",
17+
"@types/react": "19.2.2",
18+
"@types/react-dom": "19.2.2",
1919
"eslint": "9.36.0",
2020
"eslint-config-next": "16.0.0",
2121
"next": "16.0.0",
22-
"react": "19.1.1",
23-
"react-dom": "19.1.1",
22+
"react": "19.2.0",
23+
"react-dom": "19.2.0",
2424
"typescript": "5.9.3"
2525
}
2626
}

examples/nextjs-app/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"moduleResolution": "node",
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
15-
"jsx": "preserve",
15+
"jsx": "react-jsx",
1616
"incremental": true,
1717
"plugins": [
1818
{
@@ -23,6 +23,6 @@
2323
"@/*": ["./*"]
2424
}
2525
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
26+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],
2727
"exclude": ["node_modules"]
2828
}

examples/nextjs-pages/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from 'eslint/config';
2+
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
3+
import nextTypescript from 'eslint-config-next/typescript';
4+
import path from 'node:path';
5+
import { fileURLToPath } from 'node:url';
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
10+
export default defineConfig([
11+
{
12+
extends: [...nextCoreWebVitals, ...nextTypescript],
13+
},
14+
]);

0 commit comments

Comments
 (0)