mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
js: Indent case clauses in switch statements.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
f3726db89a
commit
6924d501bc
@@ -38,6 +38,7 @@
|
|||||||
"indent": ["error", 4, {
|
"indent": ["error", 4, {
|
||||||
"ArrayExpression": "first",
|
"ArrayExpression": "first",
|
||||||
"ObjectExpression": "first",
|
"ObjectExpression": "first",
|
||||||
|
"SwitchCase": 1,
|
||||||
"CallExpression": {"arguments": "first"},
|
"CallExpression": {"arguments": "first"},
|
||||||
"FunctionExpression": {"parameters": "first"},
|
"FunctionExpression": {"parameters": "first"},
|
||||||
"FunctionDeclaration": {"parameters": "first"}
|
"FunctionDeclaration": {"parameters": "first"}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"rules": {
|
|
||||||
"indent": ["error", 4, {
|
|
||||||
"ArrayExpression": "first",
|
|
||||||
"ObjectExpression": "first",
|
|
||||||
"SwitchCase": 0,
|
|
||||||
"CallExpression": {"arguments": "first"},
|
|
||||||
"FunctionExpression": {"parameters": "first"},
|
|
||||||
"FunctionDeclaration": {"parameters": "first"}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user