Skip to content

Commit

Permalink
feat(eslint): disable function scoping (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensacks authored Jul 1, 2020
1 parent a6327d5 commit 344955e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ module.exports = {
// regular expressions.
'unicorn/no-unsafe-regex': 'error',

// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/consistent-function-scoping.md
'unicorn/consistent-function-scoping': 'warn',

// Preventing abbreviations is incompatible with React standards (props, ref, etc.)
// Additionally, there are many popular libraries that have abbreviations
// as their standard practice and this rule prevents that consistency
Expand Down

0 comments on commit 344955e

Please # to comment.