We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44be6af + 54b4dea commit 8e47e39Copy full SHA for 8e47e39
packages/eslint-config-airbnb/rules/es6.js
@@ -42,6 +42,8 @@ module.exports = {
42
// require method and property shorthand syntax for object literals
43
// https://github.com/eslint/eslint/blob/master/docs/rules/object-shorthand.md
44
'object-shorthand': [2, 'always'],
45
+ // suggest using arrow functions as callbacks
46
+ 'prefer-arrow-callback': 2,
47
// suggest using of const declaration for variables that are never modified after declared
48
'prefer-const': 2,
49
// suggest using the spread operator instead of .apply()
0 commit comments