Skip to content

Commit dcc3f19

Browse files
Merge pull request #84 from Demilade01/feature/gateway-proxy
feat: API gateway proxy to upstream (#20)
2 parents 50816d9 + db69373 commit dcc3f19

21 files changed

Lines changed: 2001 additions & 247 deletions

eslint.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
import tseslint from "@typescript-eslint/eslint-plugin";
2+
import tsparser from "@typescript-eslint/parser";
3+
4+
export default [
5+
{
6+
files: ["src/**/*.ts"],
7+
languageOptions: {
8+
parser: tsparser,
9+
parserOptions: {
10+
ecmaVersion: "latest",
11+
sourceType: "module",
12+
},
13+
},
14+
plugins: {
15+
"@typescript-eslint": tseslint,
16+
},
17+
rules: {
18+
...tseslint.configs.recommended.rules,
19+
"@typescript-eslint/no-unused-vars": [
20+
"warn",
21+
{ argsIgnorePattern: "^_" },
22+
],
23+
"@typescript-eslint/no-explicit-any": "warn",
24+
},
25+
},
26+
{
27+
ignores: ["dist/**", "node_modules/**"],
28+
},
29+
];
130
import eslint from '@eslint/js';
231
import tseslint from 'typescript-eslint';
332
import globals from 'globals';

jest.config.cjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/** @type {import('ts-jest').JestConfigWithTsJest} */
22
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
testMatch: ['**/?(*.)+(spec|test).ts'],
36
preset: 'ts-jest/presets/default-esm',
47
testEnvironment: 'node',
58
testMatch: ['**/?(*.)+(spec|test).ts'],
@@ -16,6 +19,19 @@ export default {
1619
'^(\\.{1,2}/.*)\\.js$': '$1',
1720
},
1821
transform: {
22+
'^.+\\.ts$': [
23+
'ts-jest',
24+
{
25+
useESM: false,
26+
tsconfig: {
27+
module: 'commonjs',
28+
moduleResolution: 'node',
29+
isolatedModules: true,
30+
},
31+
},
32+
],
33+
},
34+
};
1935
'^.+\\.tsx?$': ['ts-jest', {
2036
useESM: true,
2137
tsconfig: {

0 commit comments

Comments
 (0)