Add missing ES6 rules to ESLint config.

`arrow-body-style` (8.2) and `prefer-template` (6.4) are described in
the Style Guide.
This commit is contained in:
Simon Olofsson
2016-01-14 17:01:31 +01:00
parent 9498b3f7c4
commit c2fd8fbbd6

View File

@@ -22,6 +22,9 @@ module.exports = {
'jsx': true
},
'rules': {
// enforces no braces where they can be omitted
// http://eslint.org/docs/rules/arrow-body-style
'arrow-body-style': [2, 'as-needed'],
// require parens in arrow function arguments
'arrow-parens': 0,
// require space before/after arrow function's arrow
@@ -50,6 +53,9 @@ module.exports = {
'prefer-spread': 0,
// suggest using Reflect methods where applicable
'prefer-reflect': 0,
// suggest using template literals instead of string concatenation
// http://eslint.org/docs/rules/prefer-template
'prefer-template': 2,
// disallow generator functions that do not have yield
'require-yield': 0
}