Added SwitchCase to indent.
This additional rule will validate that case statements inside of switch blocks are indented by x-times the normal indent. In this case it is 1x the normal indent -> 2 spaces. The default is 0. Change-Id: Ib79e859d1ec3aaafdc22c886a9c01030d5f913c7
This commit is contained in:
@@ -538,8 +538,9 @@ rules:
|
|||||||
# This option sets a specific tab width for your code
|
# This option sets a specific tab width for your code
|
||||||
# http://eslint.org/docs/rules/indent
|
# http://eslint.org/docs/rules/indent
|
||||||
indent:
|
indent:
|
||||||
- 2 # TODO(krotscheck): Discuss & Activate
|
|
||||||
- 2
|
- 2
|
||||||
|
- 2
|
||||||
|
- SwitchCase: 1
|
||||||
|
|
||||||
# Enforces spacing between keys and values in object literal properties
|
# Enforces spacing between keys and values in object literal properties
|
||||||
# http://eslint.org/docs/rules/key-spacing
|
# http://eslint.org/docs/rules/key-spacing
|
||||||
|
|||||||
Reference in New Issue
Block a user