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
1 changed files with 2 additions and 1 deletions

View File

@ -538,8 +538,9 @@ rules:
# This option sets a specific tab width for your code
# http://eslint.org/docs/rules/indent
indent:
- 2 # TODO(krotscheck): Discuss & Activate
- 2
- 2
- SwitchCase: 1
# Enforces spacing between keys and values in object literal properties
# http://eslint.org/docs/rules/key-spacing