From 7cb43c9f7f9652162feb98e7804a1eef8897d519 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Wed, 11 Apr 2018 11:02:42 -0400 Subject: [PATCH] Add TSLint rules --- tslint.json | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tslint.json b/tslint.json index 72eee0973..060e9c463 100644 --- a/tslint.json +++ b/tslint.json @@ -7,9 +7,20 @@ "jsRules": {}, "rules": { "array-type": [true, "generic"], - "quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"], + "interface-name": [true, "never-prefix"], "no-consecutive-blank-lines": [true, 2], - "interface-name": [true, "never-prefix"] + "object-literal-key-quotes": [true, "as-needed"], + "object-literal-sort-keys": false, + + // Ignore import sources order until we can specify that we want ordering + // based on import name vs module name: + "ordered-imports": [true, { + "import-sources-order": "any", + "named-imports-order": "case-insensitive" + }], + + "quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"] + }, "rulesDirectory": [] }