Skip to content

Commit

Permalink
Allow declaring variables before use in a scope above (facebook#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and romaindso committed Jul 10, 2017
1 parent 0622676 commit c6f5306
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,14 @@ module.exports = {
ignoreRestSiblings: true,
},
],
'no-use-before-define': ['warn', 'nofunc'],
'no-use-before-define': [
'warn',
{
functions: false,
classes: false,
variables: false,
},
],
'no-useless-computed-key': 'warn',
'no-useless-concat': 'warn',
'no-useless-constructor': 'warn',
Expand Down

0 comments on commit c6f5306

Please sign in to comment.