Skip to content

Commit 37a50ce

Browse files
authored
chore: update compatibility nestjs v11
chore: update compatibility nestjs v11
1 parent 00db336 commit 37a50ce

File tree

7 files changed

+1754
-1598
lines changed

7 files changed

+1754
-1598
lines changed

.eslintignore

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

.eslintrc.js

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

.github/workflows/nodejs-environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [18.x, 20.x]
16+
node-version: [20.x, 22.x]
1717

1818
steps:
1919
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -30,7 +30,7 @@ jobs:
3030

3131
strategy:
3232
matrix:
33-
node-version: [18.x, 20.x]
33+
node-version: [20.x, 22.x]
3434
needs: [build]
3535

3636
steps:

eslint.config.mjs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: ['tests/**'],
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-unsafe-assignment': 'off',
32+
'@typescript-eslint/no-unsafe-call': 'off',
33+
'@typescript-eslint/no-unsafe-member-access': 'off',
34+
'@typescript-eslint/no-unsafe-function-type': 'off',
35+
'@typescript-eslint/no-unsafe-argument': 'off',
36+
'@typescript-eslint/no-unsafe-return': 'off',
37+
'@typescript-eslint/no-unused-expressions': 'off',
38+
'@typescript-eslint/await-thenable': 'off',
39+
'@typescript-eslint/unbound-method': 'off',
40+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
41+
},
42+
},
43+
);

lib/postgres-core.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { getConnectionToken, handleRetry } from './common/postgres.utils';
1616
import { POSTGRES_MODULE_OPTIONS } from './postgres.constants';
1717
import { ModuleRef } from '@nestjs/core';
1818
import { defer, lastValueFrom } from 'rxjs';
19-
import { Client, Pool } from 'pg';
19+
import { Pool } from 'pg';
2020

2121
@Global()
2222
@Module({})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy