Enable quote-props "as-needed"

This rule aims to enforce use of quotes in property names, only
in cases where they are strictly required (such as +/- in the name).
In all other cases, it will point out unecessary quotes.

http://eslint.org/docs/rules/quote-props

Change-Id: I7925329a3291ddb836ba9d971bdab529848596de
This commit is contained in:
Michael Krotscheck 2015-08-28 06:55:30 -07:00
parent 165bb5bde2
commit 496aa03556
1 changed files with 3 additions and 1 deletions

View File

@ -686,7 +686,9 @@ rules:
# Require quotes around object literal property names
# http://eslint.org/docs/rules/quote-props
quote-props: 0 # TODO(krotscheck): Discuss & Activate
quote-props:
- 2
- "as-needed"
# Specify whether backticks, double or single quotes should be used
# http://eslint.org/docs/rules/quotes