Skip to content

Commit ee2985c

Browse files
authored
Merge pull request #394 from open-edge-platform/update-branch
feat: update to nextjs 16 (#942)
2 parents b3545a5 + 1395eac commit ee2985c

61 files changed

Lines changed: 3927 additions & 3543 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

usecases/ai/edge-ai-demo-studio/electron/package-lock.json

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

usecases/ai/edge-ai-demo-studio/frontend/eslint.config.mjs

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,34 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import { FlatCompat } from "@eslint/eslintrc";
5+
import { defineConfig, globalIgnores } from "eslint/config";
6+
import nextVitals from "eslint-config-next/core-web-vitals";
7+
import nextTs from "eslint-config-next/typescript";
8+
import prettier from "eslint-config-prettier/flat";
59

610
const compat = new FlatCompat({
711
// import.meta.dirname is available after Node.js v20.11.0
812
baseDirectory: import.meta.dirname,
913
});
1014

11-
const eslintConfig = [
12-
{
13-
ignores: ["src/app/(payload)/admin", "eslint.config.mjs"],
14-
},
15+
const eslintConfig = defineConfig([
16+
...nextVitals,
17+
...nextTs,
18+
prettier,
19+
// Override default ignores of eslint-config-next.
20+
globalIgnores([
21+
// Default ignores of eslint-config-next:
22+
".next/**",
23+
"out/**",
24+
"build/**",
25+
"next-env.d.ts",
26+
"src/app/(payload)/admin/**",
27+
"eslint.config.mjs",
28+
"playwright-report/**",
29+
]),
1530
...compat.config({
16-
extends: [
17-
"next",
18-
"next/core-web-vitals",
19-
"next/typescript",
20-
"plugin:prettier/recommended",
21-
"plugin:jsx-a11y/recommended",
22-
],
23-
plugins: ["prettier", "jsx-a11y"],
31+
extends: ["plugin:prettier/recommended"],
32+
plugins: ["prettier"],
2433
rules: {
2534
"no-console": "error",
2635
"prettier/prettier": [
@@ -39,14 +48,6 @@ const eslintConfig = [
3948
usePrettierrc: false,
4049
},
4150
],
42-
"react/react-in-jsx-scope": "off",
43-
"jsx-a11y/media-has-caption": "off",
44-
"jsx-a11y/alt-text": "warn",
45-
"jsx-a11y/aria-props": "warn",
46-
"jsx-a11y/aria-proptypes": "warn",
47-
"jsx-a11y/aria-unsupported-elements": "warn",
48-
"jsx-a11y/role-has-required-aria-props": "warn",
49-
"jsx-a11y/role-supports-aria-props": "warn",
5051
"@typescript-eslint/naming-convention": [
5152
"error",
5253
{
@@ -58,6 +59,17 @@ const eslintConfig = [
5859
],
5960
},
6061
}),
61-
];
62+
{
63+
files: ["tests/**", "**/*.spec.ts"],
64+
rules: {
65+
"no-console": "off",
66+
},
67+
},
68+
{
69+
settings: {
70+
react: { version: "19" },
71+
},
72+
},
73+
]);
6274

6375
export default eslintConfig;

0 commit comments

Comments
 (0)