Skip to content

Commit

Permalink
feat(unicorn/consistent-function-scoping): disable (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
JAdshead committed Jul 16, 2020
1 parent 0a0c5bb commit 54dd5a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ module.exports = {
// regular expressions.
'unicorn/no-unsafe-regex': 'error',

// Impacts common pattern of returning anonymous function
// Performance claim based off single stackoverflow thread
// https://stackoverflow.com/questions/80802/does-use-of-anonymous-functions-affect-performance/81329#81329
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/consistent-function-scoping.md
'unicorn/consistent-function-scoping': 'warn',
'unicorn/consistent-function-scoping': 'off',

// Preventing abbreviations is incompatible with React standards (props, ref, etc.)
// Additionally, there are many popular libraries that have abbreviations
Expand Down

0 comments on commit 54dd5a3

Please sign in to comment.