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:
Michael Krotscheck
2015-08-18 14:12:02 -07:00
parent 835416849e
commit ff33b1b5c3

View File

@@ -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