Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"eslint.workingDirectories": [
{
"mode": "auto"
}
]
}
13 changes: 13 additions & 0 deletions v6y-apps/bfb-main-analyzer/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import eslint from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import { fileURLToPath } from 'node:url';
import globals from 'globals';
import tsEslint from 'typescript-eslint';

const tsconfigRootDir = fileURLToPath(new URL('.', import.meta.url));

export default [
{
name: 'eslint:recommended',
Expand All @@ -14,6 +17,11 @@ export default [
{
name: 'analyzer:source',
files: ['src/**/*.{js,mjs,ts,tsx}'],
languageOptions: {
parserOptions: {
tsconfigRootDir,
},
},
rules: {
'max-depth': ['error', 3],
'max-nested-callbacks': ['error', 3],
Expand All @@ -27,6 +35,11 @@ export default [
{
name: 'analyzer:tests',
files: ['src/**/__tests__/**/*-test.{ts,js}', 'src/**/*.test.{ts,js,tsx}'],
languageOptions: {
parserOptions: {
tsconfigRootDir,
},
},
rules: {
'max-lines-per-function': 'off',
'max-lines': 'off',
Expand Down
4 changes: 2 additions & 2 deletions v6y-apps/bfb-main-analyzer/src/config/ServerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const SERVER_ENV_CONFIGURATION = {
apiPath: process.env.V6Y_MAIN_API_PATH,
staticAuditorApiPath: process.env.V6Y_STATIC_ANALYZER_API_PATH,
dynamicAuditorApiPath: process.env.V6Y_DYNAMIC_ANALYZER_API_PATH,
devopsAuditorApiPath: process.env.V6Y_DEVOPS_ANALYSER_API_PATH,
devopsAuditorApiPath: process.env.V6Y_DEVOPS_API_PATH,
healthCheckPath: V6Y_HEALTH_CHECK_PATH,
monitoringPath: V6Y_MONITORING_PATH,
serverTimeout: 900000, // milliseconds
Expand All @@ -24,7 +24,7 @@ const SERVER_ENV_CONFIGURATION = {
apiPath: process.env.V6Y_MAIN_API_PATH,
staticAuditorApiPath: process.env.V6Y_STATIC_ANALYZER_API_PATH,
dynamicAuditorApiPath: process.env.V6Y_DYNAMIC_ANALYZER_API_PATH,
devopsAuditorApiPath: process.env.V6Y_DEVOPS_ANALYSER_API_PATH,
devopsAuditorApiPath: process.env.V6Y_DEVOPS_API_PATH,
healthCheckPath: V6Y_HEALTH_CHECK_PATH,
monitoringPath: V6Y_MONITORING_PATH,
serverTimeout: 900000, // milliseconds
Expand Down
1 change: 1 addition & 0 deletions v6y-apps/bfb-main-analyzer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/* Modules */
"module": "NodeNext", /* Specify what module code is generated. */
// "rootDir": "./", /* Specify the root folder within your source files. */
"rootDir": "./src", /* Specify the root folder within your source files. */
"moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
"allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
/* Emit */
Expand Down
4 changes: 4 additions & 0 deletions v6y-apps/bff/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/* Modules */
"module": "NodeNext", /* Specify what module code is generated. */
// "rootDir": "./", /* Specify the root folder within your source files. */
"rootDir": "./src", /* Specify the root folder within your source files. */
"moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
"allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
/* Emit */
Expand All @@ -21,6 +22,9 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": [
"src/**/*.ts"
],
"ts-node": {
"experimentalSpecifierResolution": "node",
"transpileOnly": true,
Expand Down
1 change: 0 additions & 1 deletion v6y-apps/front-bo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"allowImportingTsExtensions": true,
"module": "ESNext",
"target": "ES2023",
"downlevelIteration": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
1 change: 0 additions & 1 deletion v6y-apps/front/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"allowImportingTsExtensions": true,
"module": "ESNext",
"target": "ES2023",
"downlevelIteration": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
1 change: 0 additions & 1 deletion v6y-libs/ui-kit-front/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"allowImportingTsExtensions": true,
"module": "ESNext",
"target": "ES2023",
"downlevelIteration": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
1 change: 0 additions & 1 deletion v6y-libs/ui-kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"allowImportingTsExtensions": true,
"module": "ESNext",
"target": "ES2023",
"downlevelIteration": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
Loading