From 8d2a8a6154f8915a6d8f77ecdee45a01c1388523 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 18:29:42 +0400 Subject: feat(typescript): Rule "indent" Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/rules') diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 4504f4e..206e1a9 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -1,4 +1,31 @@ { + "@typescript-eslint/indent": [ + "error", + "tab", + { + "ArrayExpression": 1, + "CallExpression": { + "arguments": 1 + }, + "FunctionDeclaration": { + "body": 1, + "parameters": 1 + }, + "FunctionExpression": { + "body": 1, + "parameters": 1 + }, + "ImportDeclaration": 1, + "MemberExpression": 1, + "ObjectExpression": 1, + "SwitchCase": 1, + "VariableDeclarator": "first", + "flatTernaryExpressions": true, + "ignoreComments": false, + "ignoredNodes": [], + "outerIIFEBody": 1 + } + ], "@typescript-eslint/quotes": [ "error", "double", @@ -14,6 +41,9 @@ "omitLastInOneLineBlock": false } ], + "indent": [ + "off" + ], "quotes": [ "off" ], -- cgit v1.2.3