From 7ca1240dc6b366c5c7c000f0459da980698d2b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Wed, 4 Nov 2020 10:32:05 +0100 Subject: [PATCH] feat(): update ts application schematic (update deps, config) --- src/lib/application/files/ts/.eslintrc.js | 3 +- src/lib/application/files/ts/package.json | 49 ++++++++++++----------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/src/lib/application/files/ts/.eslintrc.js b/src/lib/application/files/ts/.eslintrc.js index 0fbd99b79..da68e030b 100644 --- a/src/lib/application/files/ts/.eslintrc.js +++ b/src/lib/application/files/ts/.eslintrc.js @@ -6,10 +6,9 @@ module.exports = { }, plugins: ['@typescript-eslint/eslint-plugin'], extends: [ - 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', - 'prettier', 'prettier/@typescript-eslint', + 'plugin:prettier/recommended', ], root: true, env: { diff --git a/src/lib/application/files/ts/package.json b/src/lib/application/files/ts/package.json index fca52296b..53bf36e7d 100644 --- a/src/lib/application/files/ts/package.json +++ b/src/lib/application/files/ts/package.json @@ -21,34 +21,34 @@ "test:e2e": "jest --config ./test/jest-e2e.json" }, "dependencies": { - "@nestjs/common": "^7.0.0", - "@nestjs/core": "^7.0.0", - "@nestjs/platform-express": "^7.0.0", + "@nestjs/common": "^7.5.1", + "@nestjs/core": "^7.5.1", + "@nestjs/platform-express": "^7.5.1", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", - "rxjs": "^6.5.4" + "rxjs": "^6.6.3" }, "devDependencies": { - "@nestjs/cli": "^7.0.0", - "@nestjs/schematics": "^7.0.0", - "@nestjs/testing": "^7.0.0", - "@types/express": "^4.17.3", - "@types/jest": "26.0.15", - "@types/node": "^13.9.1", - "@types/supertest": "^2.0.8", - "@typescript-eslint/eslint-plugin": "4.6.1", - "@typescript-eslint/parser": "4.6.1", - "eslint": "7.12.1", - "eslint-config-prettier": "^6.10.0", - "eslint-plugin-import": "^2.20.1", - "jest": "26.6.3", - "prettier": "^1.19.1", - "supertest": "^4.0.2", - "ts-jest": "26.4.3", - "ts-loader": "^6.2.1", - "ts-node": "9.0.0", + "@nestjs/cli": "^7.5.1", + "@nestjs/schematics": "^7.1.3", + "@nestjs/testing": "^7.5.1", + "@types/express": "^4.17.8", + "@types/jest": "^26.0.15", + "@types/node": "^14.14.6", + "@types/supertest": "^2.0.10", + "@typescript-eslint/eslint-plugin": "^4.6.1", + "@typescript-eslint/parser": "^4.6.1", + "eslint": "^7.12.1", + "eslint-config-prettier": "^6.15.0", + "eslint-plugin-prettier": "^3.1.4", + "jest": "^26.6.3", + "prettier": "^2.1.2", + "supertest": "^6.0.0", + "ts-jest": "^26.4.3", + "ts-loader": "^8.0.8", + "ts-node": "^9.0.0", "tsconfig-paths": "^3.9.0", - "typescript": "^3.7.4" + "typescript": "^4.0.5" }, "jest": { "moduleFileExtensions": [ @@ -61,6 +61,9 @@ "transform": { "^.+\\.(t|j)s$": "ts-jest" }, + "collectCoverageFrom": [ + "**/*.(t|j)s" + ], "coverageDirectory": "../coverage", "testEnvironment": "node" }