From 9d2dc8b78d88d8f0743e40ddf81e1247307d2a27 Mon Sep 17 00:00:00 2001 From: Sean Flanigan Date: Wed, 28 Feb 2018 01:22:19 +1000 Subject: [PATCH] Tweak tslint/editorconfig --- .editorconfig | 2 +- server/zanata-frontend/src/tslint.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index d4953ce4c0..ff42a65eda 100644 --- a/.editorconfig +++ b/.editorconfig @@ -55,7 +55,7 @@ indent_style = space indent_size = 2 tab_width = 2 -[{*.js,*.jsx}] +[{*.js,*.jsx,*.ts,*.tsx}] indent_style = space indent_size = 2 continuation_indent_size = 4 diff --git a/server/zanata-frontend/src/tslint.json b/server/zanata-frontend/src/tslint.json index 3ec45fbaf2..f9d0e6d2ec 100644 --- a/server/zanata-frontend/src/tslint.json +++ b/server/zanata-frontend/src/tslint.json @@ -9,6 +9,8 @@ "arrow-parens": false, "semicolon": false, "max-classes-per-file": false, + // Allow long lines for import/export/TSX + "max-line-length": [true, {"limit": 120, "ignore-pattern": "^import |^export | implements |^\\s*<"}], "trailing-comma": [false], "quotemark": [false], "space-before-function-paren": false,