From 5516165fb65d1fd5e21f89d2503e6034ac30e864 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 5 May 2018 10:29:51 +0200 Subject: [PATCH] chore(lint): add rxjs 6 lint rules --- package-lock.json | 11 +++++++++++ package.json | 1 + tslint.json | 6 ++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index f44253692..eb63d93fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10468,6 +10468,17 @@ "tslib": "^1.9.0" } }, + "rxjs-tslint-rules": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/rxjs-tslint-rules/-/rxjs-tslint-rules-4.1.1.tgz", + "integrity": "sha512-8SEgEe6b9XU2T9vr4lAO691Dq9Uy8bsk77yQhH3EaSwZj+tRKxmH/pEAdrS+tssU0hR1VS2Sz1NXqFq9ZIQLHw==", + "dev": true, + "requires": { + "decamelize": "^2.0.0", + "resolve": "^1.4.0", + "tslib": "^1.8.0" + } + }, "safe-buffer": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", diff --git a/package.json b/package.json index 8d365bd8c..762aa140c 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "nodemon": "^1.17.3", "rimraf": "^2.6.2", "rxjs": "^6.1.0", + "rxjs-tslint-rules": "^4.1.1", "string-replace-webpack-plugin": "^0.1.3", "ts-jest": "^22.4.4", "ts-node": "^6.0.2", diff --git a/tslint.json b/tslint.json index 56de372ac..4aba85017 100644 --- a/tslint.json +++ b/tslint.json @@ -1,8 +1,10 @@ { - "extends": "tslint-ionic-rules", + "extends": ["tslint-ionic-rules", "rxjs-tslint-rules"], "rules": { "ordered-imports": false, "no-empty": false, - "no-import-side-effect": false + "no-import-side-effect": false, + "rxjs-add": { "severity": "error" }, + "rxjs-no-unused-add": { "severity": "error" } } }