From 739e7ccca28583cef7e426d977cb66da2c815a24 Mon Sep 17 00:00:00 2001 From: Vadym Date: Sat, 10 Dec 2022 01:10:34 +0200 Subject: [PATCH 1/2] chore: minor formatting fixes, add void to bootstrap function removed redundant spaces in .eslintrc.js, jsconfig.json added "void" to a bootstrap function call as WebStorm complains to it being async function and ignoring the returned promise --- src/lib/application/files/js/jsconfig.json | 8 ++++---- src/lib/application/files/js/src/main.js | 2 +- src/lib/application/files/ts/.eslintrc.js | 2 +- src/lib/application/files/ts/src/main.ts | 2 +- src/lib/library/files/js/jsconfig.json | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lib/application/files/js/jsconfig.json b/src/lib/application/files/js/jsconfig.json index e9f77af48..c0fb5a20f 100644 --- a/src/lib/application/files/js/jsconfig.json +++ b/src/lib/application/files/js/jsconfig.json @@ -1,10 +1,10 @@ { "compilerOptions": { - "target": "ES6", - "experimentalDecorators": true + "target": "ES6", + "experimentalDecorators": true }, "exclude": [ - "node_modules", - "dist" + "node_modules", + "dist" ] } diff --git a/src/lib/application/files/js/src/main.js b/src/lib/application/files/js/src/main.js index 13cad38cf..23f3240c2 100644 --- a/src/lib/application/files/js/src/main.js +++ b/src/lib/application/files/js/src/main.js @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } -bootstrap(); +void bootstrap(); diff --git a/src/lib/application/files/ts/.eslintrc.js b/src/lib/application/files/ts/.eslintrc.js index 8f5aedb71..259de13c7 100644 --- a/src/lib/application/files/ts/.eslintrc.js +++ b/src/lib/application/files/ts/.eslintrc.js @@ -2,7 +2,7 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', - tsconfigRootDir : __dirname, + tsconfigRootDir: __dirname, sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], diff --git a/src/lib/application/files/ts/src/main.ts b/src/lib/application/files/ts/src/main.ts index 13cad38cf..23f3240c2 100644 --- a/src/lib/application/files/ts/src/main.ts +++ b/src/lib/application/files/ts/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } -bootstrap(); +void bootstrap(); diff --git a/src/lib/library/files/js/jsconfig.json b/src/lib/library/files/js/jsconfig.json index 9ac2315dd..6598f1d2d 100644 --- a/src/lib/library/files/js/jsconfig.json +++ b/src/lib/library/files/js/jsconfig.json @@ -1,9 +1,9 @@ { "compilerOptions": { - "target": "ES6", - "experimentalDecorators": true + "target": "ES6", + "experimentalDecorators": true }, "exclude": [ - "node_modules" + "node_modules" ] -} \ No newline at end of file +} From 0ec48d8fa146d572008919115c760e06e8ce4e7b Mon Sep 17 00:00:00 2001 From: Vadym Date: Mon, 12 Dec 2022 10:27:23 +0200 Subject: [PATCH 2/2] fix: remove void from main.ts,js --- src/lib/application/files/js/src/main.js | 2 +- src/lib/application/files/ts/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/application/files/js/src/main.js b/src/lib/application/files/js/src/main.js index 23f3240c2..13cad38cf 100644 --- a/src/lib/application/files/js/src/main.js +++ b/src/lib/application/files/js/src/main.js @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } -void bootstrap(); +bootstrap(); diff --git a/src/lib/application/files/ts/src/main.ts b/src/lib/application/files/ts/src/main.ts index 23f3240c2..13cad38cf 100644 --- a/src/lib/application/files/ts/src/main.ts +++ b/src/lib/application/files/ts/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } -void bootstrap(); +bootstrap();