Skip to content

Commit

Permalink
Merge branch 'Tony133-fix/update-peer-dependencies-for-platform-fastify'
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 17, 2025
2 parents d47e874 + 71e399e commit 6589278
Show file tree
Hide file tree
Showing 59 changed files with 988 additions and 578 deletions.
4 changes: 2 additions & 2 deletions packages/platform-fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"peerDependencies": {
"@fastify/static": "^8.0.0",
"@fastify/view": "^10.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0"
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0"
},
"peerDependenciesMeta": {
"@fastify/static": {
Expand Down
23 changes: 0 additions & 23 deletions sample/20-cache/.eslintrc.js

This file was deleted.

43 changes: 43 additions & 0 deletions sample/20-cache/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check
import eslint from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['eslint.config.mjs'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
ecmaVersion: 5,
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/unbound-method': 'warn',
},
},
);
17 changes: 10 additions & 7 deletions sample/20-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,38 @@
},
"dependencies": {
"@nestjs/cache-manager": "2.3.0",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/platform-express": "10.4.15",
"@nestjs/common": "11.0.1",
"@nestjs/core": "11.0.1",
"@nestjs/platform-express": "11.0.1",
"cache-manager": "^5.2.3",
"class-transformer": "0.5.1",
"class-validator": "0.14.1",
"reflect-metadata": "0.2.2",
"rxjs": "7.8.1"
},
"devDependencies": {
"@eslint/eslintrc": "3.2.0",
"@eslint/js": "9.18.0",
"@nestjs/cli": "10.4.9",
"@nestjs/schematics": "10.2.3",
"@nestjs/testing": "10.4.15",
"@nestjs/testing": "11.0.1",
"@types/cache-manager": "^4.0.2",
"@types/express": "4.17.21",
"@types/node": "22.10.6",
"@types/supertest": "6.0.2",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"eslint": "9.18.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.2",
"globals": "15.14.0",
"jest": "29.7.0",
"prettier": "3.4.2",
"supertest": "7.0.0",
"ts-jest": "29.2.5",
"ts-loader": "9.5.2",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.7.3"
"typescript": "5.7.3",
"typescript-eslint": "8.20.0"
}
}
23 changes: 0 additions & 23 deletions sample/21-serializer/.eslintrc.js

This file was deleted.

43 changes: 43 additions & 0 deletions sample/21-serializer/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check
import eslint from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['eslint.config.mjs'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
ecmaVersion: 5,
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/unbound-method': 'warn',
},
},
);
8 changes: 5 additions & 3 deletions sample/21-serializer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"test:e2e": "echo 'No e2e tests implemented yet.'"
},
"dependencies": {
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/platform-express": "10.4.15",
"@nestjs/common": "11.0.1",
"@nestjs/core": "11.0.1",
"@nestjs/platform-express": "11.0.1",
"class-transformer": "0.5.1",
"reflect-metadata": "0.2.2",
"rimraf": "6.0.1",
Expand All @@ -44,6 +44,8 @@
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"eslint": "9.18.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.2",
"globals": "15.14.0",
"typescript": "5.7.3",
Expand Down
23 changes: 0 additions & 23 deletions sample/22-graphql-prisma/.eslintrc.js

This file was deleted.

43 changes: 43 additions & 0 deletions sample/22-graphql-prisma/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check
import eslint from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['eslint.config.mjs'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
ecmaVersion: 5,
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/unbound-method': 'warn',
},
},
);
15 changes: 10 additions & 5 deletions sample/22-graphql-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"dependencies": {
"@apollo/server": "4.11.3",
"@nestjs/apollo": "12.2.2",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/common": "11.0.1",
"@nestjs/core": "11.0.1",
"@nestjs/graphql": "12.2.2",
"@nestjs/platform-express": "10.4.15",
"@nestjs/platform-express": "11.0.1",
"@prisma/client": "4.16.2",
"class-transformer": "0.5.1",
"class-validator": "0.14.1",
Expand All @@ -36,9 +36,11 @@
"rxjs": "7.8.1"
},
"devDependencies": {
"@eslint/eslintrc": "3.2.0",
"@eslint/js": "9.18.0",
"@nestjs/cli": "10.4.9",
"@nestjs/schematics": "10.2.3",
"@nestjs/testing": "10.4.15",
"@nestjs/testing": "11.0.1",
"@types/express": "4.17.21",
"@types/node": "22.10.6",
"@types/supertest": "6.0.2",
Expand All @@ -47,6 +49,8 @@
"eslint": "9.18.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.2",
"globals": "15.14.0",
"jest": "29.7.0",
"prettier": "3.4.2",
"prisma": "^4.15.0",
Expand All @@ -56,6 +60,7 @@
"ts-morph": "25.0.0",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.7.3"
"typescript": "5.7.3",
"typescript-eslint": "8.20.0"
}
}
23 changes: 0 additions & 23 deletions sample/23-graphql-code-first/.eslintrc.js

This file was deleted.

43 changes: 43 additions & 0 deletions sample/23-graphql-code-first/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check
import eslint from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['eslint.config.mjs'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
ecmaVersion: 5,
sourceType: 'module',
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/unbound-method': 'warn',
},
},
);
Loading

0 comments on commit 6589278

Please sign in to comment.