Add Section 18.11 - Add spaces inside curly braces

Fixes #593
This commit is contained in:
Stefano Pigozzi
2015-11-28 13:29:12 +01:00
parent ee3759a7ed
commit 6debbcdd73
2 changed files with 12 additions and 2 deletions

View File

@@ -66,8 +66,8 @@ module.exports = {
'no-underscore-dangle': 0,
// disallow the use of Boolean literals in conditional expressions
'no-unneeded-ternary': 0,
// require or disallow padding inside curly braces
'object-curly-spacing': 0,
// require padding inside curly braces
'object-curly-spacing': [2, 'always'],
// allow just one var statement per function
'one-var': [2, 'never'],
// require assignment operator shorthand where possible or prohibit it entirely