feat(eslint): Rule "indent"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
6beddfac34
commit
fe5de6953a
@ -50,7 +50,7 @@
|
|||||||
- [ ] "id-length"
|
- [ ] "id-length"
|
||||||
- [ ] "id-match"
|
- [ ] "id-match"
|
||||||
- [ ] "implicit-arrow-linebreak"
|
- [ ] "implicit-arrow-linebreak"
|
||||||
- [ ] "indent"
|
- [X] "indent"
|
||||||
- [X] "indent-legacy"
|
- [X] "indent-legacy"
|
||||||
- [ ] "init-declarations"
|
- [ ] "init-declarations"
|
||||||
- [ ] "jsx-quotes"
|
- [ ] "jsx-quotes"
|
||||||
|
@ -3,6 +3,33 @@
|
|||||||
"error",
|
"error",
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
],
|
||||||
"indent-legacy": [
|
"indent-legacy": [
|
||||||
"off"
|
"off"
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user