feat(typescript): Rule "indent"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 18:29:42 +04:00
parent 50a06b02ba
commit 8d2a8a6154
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 31 additions and 1 deletions

View File

@ -301,7 +301,7 @@
- [ ] "explicit-module-boundary-types"
- [ ] "func-call-spacing"
- [ ] "generic-type-naming"
- [ ] "indent"
- [X] "indent"
- [ ] "interface-name-prefix"
- [ ] "member-delimiter-style"
- [ ] "member-naming"

View File

@ -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"
],