Skip to content

Commit 3309002

Browse files
author
Ray Schamp
committed
fix(base): Enforce quote-props
Object properties should not use quotes unless necessary, in which case all properties of the object should use quotes. BREAKING CHANGE: http://eslint.org/docs/rules/quote-props ([2, 'consistent-as-needed'])
1 parent b10b59d commit 3309002

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ module.exports = {
108108
}],
109109
'one-var': [2, 'never'],
110110
'operator-linebreak': [2, 'after'],
111+
'quote-props': [2, 'consistent-as-needed'],
111112
'quotes': [2, 'single', {
112-
'allowTemplateLiterals': true,
113-
'avoidEscape': true
113+
allowTemplateLiterals: true,
114+
avoidEscape: true
114115
}],
115116
'require-jsdoc': [1],
116117
'semi': [2, 'always'],

0 commit comments

Comments
 (0)