mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-08-28 22:40:13 -04:00
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'])
This commit is contained in:
parent
b10b59d7a0
commit
3309002c03
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
@ -108,9 +108,10 @@ module.exports = {
|
|||
}],
|
||||
'one-var': [2, 'never'],
|
||||
'operator-linebreak': [2, 'after'],
|
||||
'quote-props': [2, 'consistent-as-needed'],
|
||||
'quotes': [2, 'single', {
|
||||
'allowTemplateLiterals': true,
|
||||
'avoidEscape': true
|
||||
allowTemplateLiterals: true,
|
||||
avoidEscape: true
|
||||
}],
|
||||
'require-jsdoc': [1],
|
||||
'semi': [2, 'always'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue