Add lint rule for function declaration indentation
This commit is contained in:
parent
8be924c9d9
commit
07a69954b1
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
||||||
"indent": ["error", 4, { "SwitchCase": 1,
|
"indent": ["error", 4, { "SwitchCase": 1,
|
||||||
|
"FunctionDeclaration": { "parameters": "first" },
|
||||||
"CallExpression": { "arguments": "first" },
|
"CallExpression": { "arguments": "first" },
|
||||||
"ArrayExpression": "first",
|
"ArrayExpression": "first",
|
||||||
"ObjectExpression": "first",
|
"ObjectExpression": "first",
|
||||||
|
|
Loading…
Reference in New Issue