Skip to content

Commit 10f4dd8

Browse files
committed
[eslint config] [base] [patch] object-shorthand: do not warn when the concise form would have a string literal as a name.
1 parent 7a80837 commit 10f4dd8

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+1
-1
lines changed

packages/eslint-config-airbnb-base/rules/es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = {
8585
// http://eslint.org/docs/rules/object-shorthand
8686
'object-shorthand': [2, 'always', {
8787
'ignoreConstructors': false,
88-
'avoidQuotes': false, // TODO: enable
88+
'avoidQuotes': true,
8989
}],
9090

9191
// suggest using arrow functions as callbacks

0 commit comments

Comments
 (0)