diff --git a/.eslintrc.js b/.eslintrc.js index 4429cd3..72e70c8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,6 +16,7 @@ module.exports = { ], "rules": { "@typescript-eslint/adjacent-overload-signatures": "error", + "@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/naming-convention": [ "error", { diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a684b8..1c4f7b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 0.2.8 (December 22nd, 2021) + +- updated ts config and added no floating promise rule + ### 0.2.7 (December 22nd, 2021) - updated RC dependencies diff --git a/package-lock.json b/package-lock.json index 47af9a3..d884b90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@restorecommerce/notification-srv", - "version": "0.2.7", + "version": "0.2.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@restorecommerce/notification-srv", - "version": "0.2.7", + "version": "0.2.8", "license": "MIT", "dependencies": { "@restorecommerce/chassis-srv": "^0.3.5", diff --git a/package.json b/package.json index eb38524..7e547fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@restorecommerce/notification-srv", - "version": "0.2.7", + "version": "0.2.8", "description": "Restorecommerce notification microservice", "main": "lib/start.js", "author": "n-fuse GmbH", diff --git a/src/send.ts b/src/send.ts index 7b8c4d0..1d90e2c 100644 --- a/src/send.ts +++ b/src/send.ts @@ -1,4 +1,4 @@ -import * as Mailer from '@restorecommerce/mailer'; +import Mailer from '@restorecommerce/mailer'; import { Notification } from './notification'; /** diff --git a/test/notification.spec.ts b/test/notification.spec.ts index da6a440..4f5234c 100644 --- a/test/notification.spec.ts +++ b/test/notification.spec.ts @@ -1,5 +1,5 @@ import * as fs from 'fs'; -import * as assert from 'assert'; +import assert from 'assert'; import { createServiceConfig } from '@restorecommerce/service-config'; import { Events } from '@restorecommerce/kafka-client'; import { GrpcClient } from '@restorecommerce/grpc-client'; diff --git a/tsconfig.json b/tsconfig.json index a2cdbe4..1d91240 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,18 @@ { "compilerOptions": { - "target": "ES6", + "target": "ES2021", "module": "commonjs", "moduleResolution": "node", + "declaration": true, + // "strict": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "noUnusedLocals": false, + "importHelpers": true, "skipLibCheck": true, + "esModuleInterop": true, + "sourceMap": true, "outDir": "lib", "typeRoots": [ "node_modules/@types" @@ -22,8 +27,8 @@ ], "exclude": [ "**/*.test.ts", - "doc", + "node_modules", "lib", - "node_modules" + "doc" ] -} +} \ No newline at end of file