From eb960b71626f7066e5e3978c35956ae8552e7431 Mon Sep 17 00:00:00 2001 From: Alexander Vakrilov Date: Thu, 7 Nov 2019 13:19:20 +0200 Subject: [PATCH] chore: add no android.R tslint rule (#8033) --- build/tslint.json | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/build/tslint.json b/build/tslint.json index 4180d428a..34f6da9af 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 800119891..adf3acb47 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",