Commit 6f5557f
authored
feat: upgrade NestJS to v11 and migrate to ESLint flat config (#10746)
### Description
<!--
✍️ Write a short summary of your work.
If necessary, include relevant screenshots.
-->
This PR upgrades the NestJS example from v10 to v11 and modernizes the
project configuration. The main changes include:
- **NestJS Upgrade**: Upgrade `@nestjs/common`, `@nestjs/core`, and
`@nestjs/platform-express` from v10 to v11
- **ESLint Migration**: Migrate from legacy `.eslintrc.js` format to
modern flat config format using `eslint.config.mjs`
- **Configuration Cleanup**: Remove legacy configuration files
(`.eslintrc.js`, `.prettierrc.js`) and replace with modern equivalents
- **Package Updates**: Update dependencies and scripts across all
packages in the monorepo
- **Project Structure**: Modernize the overall project structure with
updated TypeScript and build configurations
<!--
Give a quick description of steps to test your changes.
-->
## Testing Instructions
1. **Install Dependencies**
```bash
pnpm install
pnpm build
```
2. **Verify NestJS API**
```bash
pnpm --filter=api run dev
```
- Check that the API starts without errors
- Verify endpoints are accessible at `http://localhost:3000`
3. **Test Web Application**
```bash
pnpm --filter=web run dev
```
- Ensure the web app runs on `http://localhost:3001`
- Verify the UI displays correctly
4. **Linting and Formatting**
```bash
pnpm run lint
pnpm run format
```
- Confirm ESLint runs without errors
- Verify Prettier formatting works correctly
5. **Build Process**
```bash
pnpm build
```
- Ensure all packages build successfully
- Check for any TypeScript compilation errors
6. **Run Tests**
```bash
pnpm test
```
- Verify all tests pass
- Check that Jest configuration works properly1 parent e34dcd4 commit 6f5557f
File tree
72 files changed
+3079
-4921
lines changed- examples/with-nestjs
- apps
- api
- src
- web
- app
- fonts
- public
- test
- e2e
- packages
- api
- eslint-config
- jest-config
- src
- ui
- src
- turbo/generators
- templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
72 files changed
+3079
-4921
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments