From 28f1619dccf1805b450d27433dbc92dc8357c609 Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 27 Aug 2016 09:47:34 +0800 Subject: [PATCH] Docs: Update the example of SwitchCase (#6981) * Docs: Update the example of SwitchCase * add a new example of SwitchCase --- docs/rules/indent.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/rules/indent.md b/docs/rules/indent.md index 765e5069cd8..4719d5c03a1 100644 --- a/docs/rules/indent.md +++ b/docs/rules/indent.md @@ -82,8 +82,9 @@ Level of indentation denotes the multiple of the indent specified. Example: * Indent of 2 spaces with `VariableDeclarator` set to `{"var": 2, "let": 2, "const": 3}` will indent the multi-line variable declarations with 4 spaces for `var` and `let`, 6 spaces for `const` statements. * Indent of tab with `VariableDeclarator` set to `2` will indent the multi-line variable declarations with 2 tabs. * Indent of 2 spaces with `SwitchCase` set to `0` will not indent `case` clauses with respect to `switch` statements. +* Indent of 2 spaces with `SwitchCase` set to `1` will indent `case` clauses with 2 spaces with respect to `switch` statements. * Indent of 2 spaces with `SwitchCase` set to `2` will indent `case` clauses with 4 spaces with respect to `switch` statements. -* Indent of tabs with `SwitchCase` set to `2` will indent `case` clauses with 2 tabs with respect to `switch` statements. +* Indent of tab with `SwitchCase` set to `2` will indent `case` clauses with 2 tabs with respect to `switch` statements. * Indent of 2 spaces with `MemberExpression` set to `0` will indent the multi-line property chains with 0 spaces. * Indent of 2 spaces with `MemberExpression` set to `1` will indent the multi-line property chains with 2 spaces. * Indent of 2 spaces with `MemberExpression` set to `2` will indent the multi-line property chains with 4 spaces.