From 496aa0355673aa9be3281b293c13170aacbc92b9 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 28 Aug 2015 06:55:30 -0700 Subject: [PATCH] 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 --- .eslintrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 8ef185b..45d6ac7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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