Skip to content

Commit e16fc96

Browse files
feat: migrate to Next.js 16, React 19, and BiomeJS
- Update `next` to 16.0.7, `react`/`react-dom` to 19.2.1. - Replace ESLint and Prettier with BiomeJS. - Migrate codebase to handle Next.js 16 breaking changes (async `params` in pages and routes). - Fix TypeGraphQL decorator issues with Biome parser options. - Update tests to support React 19 and new config. - Fix various linting and formatting issues identified by Biome.
1 parent dcd8f23 commit e16fc96

File tree

387 files changed

+40815
-47517
lines changed

Some content is hidden

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

387 files changed

+40815
-47517
lines changed

.eslintignore

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

.eslintrc.js

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

.prettierignore

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

.prettierrc.json

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

biome.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space",
14+
"indentWidth": 2,
15+
"lineWidth": 100
16+
},
17+
"linter": {
18+
"enabled": true,
19+
"rules": {
20+
"recommended": true,
21+
"complexity": {
22+
"noBannedTypes": "off"
23+
},
24+
"style": {
25+
"noNonNullAssertion": "off"
26+
}
27+
}
28+
},
29+
"javascript": {
30+
"parser": {
31+
"unsafeParameterDecoratorsEnabled": true
32+
},
33+
"formatter": {
34+
"quoteStyle": "single",
35+
"trailingCommas": "es5"
36+
}
37+
},
38+
"assist": {
39+
"enabled": true,
40+
"actions": {
41+
"source": {
42+
"organizeImports": "on"
43+
}
44+
}
45+
}
46+
}

next.config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@ const nextConfig = {
1717
typescript: {
1818
tsconfigPath: './tsconfig.next.json',
1919
},
20-
experimental: {
21-
serverComponentsExternalPackages: ["graphql", "typeorm"],
22-
},
23-
eslint: {
24-
ignoreDuringBuilds: true,
25-
},
20+
serverExternalPackages: ["graphql", "typeorm"],
2621
webpack: {
2722
devtool: "source-map",
28-
}
23+
},
24+
// We use webpack config for source maps, so we disable turbopack for now to match previous behavior or explicitly opt-in to webpack.
25+
// Next 16 defaults to turbopack for `next build`.
2926
};
3027

3128
module.exports = nextConfig;

0 commit comments

Comments
 (0)