Merge pull request #677 from simono/patch-3

[eslint config] [minor] Add `prefer-arrow-callback` to ES6 rules (to match the guide)
This commit is contained in:
Jordan Harband
2016-01-13 08:36:05 -08:00

View File

@@ -42,6 +42,8 @@ module.exports = {
// require method and property shorthand syntax for object literals
// https://github.com/eslint/eslint/blob/master/docs/rules/object-shorthand.md
'object-shorthand': [2, 'always'],
// suggest using arrow functions as callbacks
'prefer-arrow-callback': 2,
// suggest using of const declaration for variables that are never modified after declared
'prefer-const': 2,
// suggest using the spread operator instead of .apply()