diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 17:29:42 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 17:29:42 +0300 |
commit | 8d2a8a6154f8915a6d8f77ecdee45a01c1388523 (patch) | |
tree | 77d2882ca9ffb659a29b1ea1163ceded10d0b109 /src/rules/typescript | |
parent | 50a06b02ba8548c633ba5c3f3e38f827419d4c45 (diff) | |
download | eslint-config-8d2a8a6154f8915a6d8f77ecdee45a01c1388523.tar.xz eslint-config-8d2a8a6154f8915a6d8f77ecdee45a01c1388523.zip |
feat(typescript): Rule "indent"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules/typescript')
-rw-r--r-- | src/rules/typescript/default.json | 30 |
1 files changed, 30 insertions, 0 deletions
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" ], |