From 61169beffa22e266e8dfd6321a27706338fa0ea3 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Tue, 29 Oct 2019 20:24:11 +0200 Subject: [PATCH] chore: add no android.R tslint rule --- build/tslint.json | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/build/tslint.json b/build/tslint.json index 4180d428aa..34f6da9afb 100644 --- a/build/tslint.json +++ b/build/tslint.json @@ -1,4 +1,7 @@ { + "rulesDirectory": [ + "@nativescript/tslint-rules" + ], "rules": { "arrow-return-shorthand": true, "class-name": true, @@ -9,6 +12,7 @@ "jsdoc-format": false, "max-line-length": [false, 120], "newline-before-return": true, + "no-android-resources": true, "no-arg": true, "no-bitwise": false, "no-consecutive-blank-lines": true, diff --git a/package.json b/package.json index 5c18e302df..f43234ab7a 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "license": "Apache-2.0", "devDependencies": { "@microsoft/api-extractor": "^7.5.0", + "@nativescript/tslint-rules": "0.0.5", "@types/chai": "^4.0.4", "@types/mocha": "^2.2.42", "@types/node": "~10.12.18",