Skip to content

Commit 96cbaa1

Browse files
committed
Update object-shorthand rule
1 parent ac99c7e commit 96cbaa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const baseRules = {
130130
quotes: [
131131
'error',
132132
'single',
133+
'backtick',
133134
{
134135
avoidEscape: true,
135136
},
@@ -175,7 +176,7 @@ const baseRules = {
175176
'no-var': 'error',
176177

177178
// Require method and property shorthand syntax for object literals
178-
'object-shorthand': ['error', 'always'],
179+
'object-shorthand': ['error', 'consistent-as-needed'],
179180

180181
// Require `const` declarations for variables
181182
// that are never reassigned after declared

0 commit comments

Comments
 (0)