Skip to content

Commit 42efedb

Browse files
authoredMay 22, 2017
Allow declaring variables before use in a scope above (#2325)
1 parent 0d1521a commit 42efedb

File tree

1 file changed

+8
-1
lines changed
  • packages/eslint-config-react-app

1 file changed

+8
-1
lines changed
 

‎packages/eslint-config-react-app/index.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,14 @@ module.exports = {
195195
ignoreRestSiblings: true,
196196
},
197197
],
198-
'no-use-before-define': ['warn', 'nofunc'],
198+
'no-use-before-define': [
199+
'warn',
200+
{
201+
functions: false,
202+
classes: false,
203+
variables: false,
204+
},
205+
],
199206
'no-useless-computed-key': 'warn',
200207
'no-useless-concat': 'warn',
201208
'no-useless-constructor': 'warn',

1 commit comments

Comments
 (1)

gaspard commented on May 25, 2017

@gaspard

This breaks in latest eslint with:

Module build failed: Error: node_modules/eslint-config-react-app/index.js:
	Configuration for rule "no-use-before-define" is invalid:
	Value "[object Object]" no (or more than one) schemas match.

Referenced from:
    at Array.forEach (native)
    at Array.reduceRight (native)
Please sign in to comment.