Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit f00fe04

Browse files
Update no-use-before-define for classes
1 parent dce70c0 commit f00fe04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

environments/shared/recommended.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ module.exports = {
242242
// declared (but is declared later)
243243
// Function declarations are exempted from the rule, so it is allowed to use a function name
244244
// before its declaration
245-
'no-use-before-define': [2, 'nofunc'],
245+
'no-use-before-define': [2, {
246+
functions: false,
247+
classes: false,
248+
}],
246249

247250
// Disallow new For Side Effects
248251
// This rule is aimed at maintaining consistency and convention by disallowing constructor calls

0 commit comments

Comments
 (0)