Bug 1230581 - Eslint 'no-use-before-define' should be relaxed with 'nofunc'. r=Mossop
authorMarco Bonardo <mbonardo@mozilla.com>
Fri, 04 Dec 2015 17:35:04 +0100
changeset 275648 a258f7e89c8bdfda345641cf302b94cadcdcf06d
parent 275647 f682b6e626841acb178c9ab57d2bc924bda7094a
child 275649 2489a4b3a2a5fc17675499e56072ff4ef1a76d32
push id29763
push userryanvm@gmail.com
push dateSat, 05 Dec 2015 20:09:55 +0000
treeherdermozilla-central@094bf2eff9d7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs1230581
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1230581 - Eslint 'no-use-before-define' should be relaxed with 'nofunc'. r=Mossop
toolkit/.eslintrc
--- a/toolkit/.eslintrc
+++ b/toolkit/.eslintrc
@@ -150,17 +150,17 @@
 
     // No expressions where a statement is expected
     // "no-unused-expressions": 2,
 
     // No declaring variables that are never used
     // "no-unused-vars": [2, {"vars": "all", "args": "none"}],
 
     // No using variables before defined
-    // "no-use-before-define": 2,
+    // "no-use-before-define": [2, "nofunc"],
 
     // No using with
     // "no-with": 2,
 
     // Always require semicolon at end of statement
     // "semi": [2, "always"],
 
     // Require space after keywords