feat(typescript): Rule "indent"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
50a06b02ba
commit
8d2a8a6154
@ -301,7 +301,7 @@
|
|||||||
- [ ] "explicit-module-boundary-types"
|
- [ ] "explicit-module-boundary-types"
|
||||||
- [ ] "func-call-spacing"
|
- [ ] "func-call-spacing"
|
||||||
- [ ] "generic-type-naming"
|
- [ ] "generic-type-naming"
|
||||||
- [ ] "indent"
|
- [X] "indent"
|
||||||
- [ ] "interface-name-prefix"
|
- [ ] "interface-name-prefix"
|
||||||
- [ ] "member-delimiter-style"
|
- [ ] "member-delimiter-style"
|
||||||
- [ ] "member-naming"
|
- [ ] "member-naming"
|
||||||
|
@ -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": [
|
"@typescript-eslint/quotes": [
|
||||||
"error",
|
"error",
|
||||||
"double",
|
"double",
|
||||||
@ -14,6 +41,9 @@
|
|||||||
"omitLastInOneLineBlock": false
|
"omitLastInOneLineBlock": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"indent": [
|
||||||
|
"off"
|
||||||
|
],
|
||||||
"quotes": [
|
"quotes": [
|
||||||
"off"
|
"off"
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user