Skip to content

Commit

Permalink
fix: Do not prefer arrow for ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Mar 29, 2018
1 parent c2b2a57 commit 380f1ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ module.exports = Object.assign({
'prefer-const': 'off',
// See: https://eslint.org/docs/rules/prefer-template
'prefer-template': 'off',
// See: https://eslint.org/docs/rules/prefer-arrow
'prefer-arrow-callback': 'off',

// Additional mistakes
'node/no-unsupported-features': [2, { version: 4 }],

}),
});
3 changes: 3 additions & 0 deletions examples/eslint/es5/no-prefer-arrow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

process.on('foo', function() {});

0 comments on commit 380f1ae

Please sign in to comment.