Skip to content

Commit 780fe91

Browse files
sample: another round of sample updates
1 parent 5ce8c43 commit 780fe91

File tree

3 files changed

+54
-34
lines changed

3 files changed

+54
-34
lines changed

sample/10-fastify/.eslintrc.js

-23
This file was deleted.

sample/10-fastify/eslint.config.mjs

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// @ts-check
2+
import eslint from '@eslint/js';
3+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4+
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{
9+
ignores: ['eslint.config.mjs'],
10+
},
11+
eslint.configs.recommended,
12+
...tseslint.configs.recommendedTypeChecked,
13+
eslintPluginPrettierRecommended,
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.node,
18+
...globals.jest,
19+
},
20+
ecmaVersion: 5,
21+
sourceType: 'module',
22+
parserOptions: {
23+
projectService: true,
24+
tsconfigRootDir: import.meta.dirname,
25+
},
26+
},
27+
},
28+
{
29+
rules: {
30+
'@typescript-eslint/no-explicit-any': 'off',
31+
'@typescript-eslint/no-floating-promises': 'off',
32+
'@typescript-eslint/no-unsafe-argument': 'warn',
33+
'@typescript-eslint/ban-ts-comment': 'off',
34+
'@typescript-eslint/no-unsafe-return': 'off',
35+
'@typescript-eslint/no-unsafe-assignment': 'warn',
36+
'@typescript-eslint/no-unsafe-call': 'warn',
37+
'@typescript-eslint/no-unsafe-member-access': 'warn',
38+
'@typescript-eslint/require-await': 'warn',
39+
'@typescript-eslint/no-unused-vars': 'warn',
40+
},
41+
},
42+
);

sample/10-fastify/package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,35 @@
1919
"test:e2e": "echo 'No e2e tests implemented yet.'"
2020
},
2121
"dependencies": {
22-
"@nestjs/common": "10.4.15",
23-
"@nestjs/core": "10.4.15",
24-
"@nestjs/platform-fastify": "10.4.15",
22+
"@nestjs/common": "11.0.0",
23+
"@nestjs/core": "11.0.0",
24+
"@nestjs/platform-fastify": "11.0.0",
2525
"class-transformer": "0.5.1",
2626
"class-validator": "0.14.1",
2727
"reflect-metadata": "0.2.2",
2828
"rimraf": "6.0.1",
2929
"rxjs": "7.8.1"
3030
},
3131
"devDependencies": {
32+
"@eslint/eslintrc": "3.2.0",
33+
"@eslint/js": "9.18.0",
3234
"@nestjs/cli": "10.4.9",
3335
"@nestjs/schematics": "10.2.3",
34-
"@nestjs/testing": "10.4.15",
35-
"@types/express": "4.17.21",
36-
"@types/node": "22.10.6",
36+
"@nestjs/testing": "11.0.0",
37+
"@types/express": "5.0.0",
38+
"@types/node": "22.10.7",
3739
"@types/supertest": "6.0.2",
38-
"@typescript-eslint/eslint-plugin": "5.62.0",
39-
"@typescript-eslint/parser": "5.62.0",
4040
"eslint": "9.18.0",
41-
"eslint-config-prettier": "9.1.0",
42-
"eslint-plugin-import": "2.31.0",
41+
"eslint-plugin-prettier": "5.2.2",
42+
"globals": "15.14.0",
4343
"jest": "29.7.0",
4444
"prettier": "3.4.2",
4545
"supertest": "7.0.0",
4646
"ts-jest": "29.2.5",
4747
"ts-loader": "9.5.2",
4848
"ts-node": "10.9.2",
4949
"tsconfig-paths": "4.2.0",
50-
"typescript": "5.7.3"
50+
"typescript": "5.7.3",
51+
"typescript-eslint": "8.20.0"
5152
}
5253
}

0 commit comments

Comments
 (0)