[eslint config] [base] [patch] object-shorthand: do not warn when the concise form would have a string literal as a name.

This commit is contained in:
Jordan Harband
2016-05-15 21:43:40 -05:00
parent 7a8083795d
commit 10f4dd88aa

View File

@@ -85,7 +85,7 @@ module.exports = {
// http://eslint.org/docs/rules/object-shorthand
'object-shorthand': [2, 'always', {
'ignoreConstructors': false,
'avoidQuotes': false, // TODO: enable
'avoidQuotes': true,
}],
// suggest using arrow functions as callbacks