chore(lint): add rxjs 6 lint rules

This commit is contained in:
Daniel 2018-05-05 10:29:51 +02:00
parent 48714d72d6
commit 5516165fb6
3 changed files with 16 additions and 2 deletions

11
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -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" }
}
}