From 174dcf5f8dc0bbec2f598b4f2ee81060b2c9a03f Mon Sep 17 00:00:00 2001 From: Brad Martin Date: Sun, 11 Nov 2018 23:23:00 -0600 Subject: [PATCH] add tslint --- tslint.json | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tslint.json diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..e13fa64 --- /dev/null +++ b/tslint.json @@ -0,0 +1,39 @@ +{ + "rules": { + "class-name": true, + "comment-format": [true, "check-space"], + "indent": [true, "tabs"], + "no-duplicate-variable": true, + "no-eval": true, + "member-ordering": true, + + "member-access": true, + "prefer-const": true, + "no-internal-module": true, + "no-trailing-whitespace": true, + "no-var-keyword": true, + "one-line": [true, "check-open-brace", "check-whitespace"], + "quotemark": [false, "single"], + "semicolon": [true, "always"], + "triple-equals": [true, "allow-null-check"], + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "variable-name": [true, "ban-keywords"], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator", + "check-type" + ] + } +}