Bug 1253693 - Switch prefer-es6-class React .eslintrc to prefer createClass. r=jlong
authorLin Clark <lclark@mozilla.com>
Fri, 04 Mar 2016 12:22:00 -0800
changeset 309895 fdcd2bcdfdcc5182e6734354c846405ff7381f29
parent 309894 c5338fae9902fbb19c82b77eee85a31bf5929d0e
child 309896 8bedab78c87044bd17055e5072495329ac4d15a3
push id9214
push userraliiev@mozilla.com
push dateMon, 07 Mar 2016 14:25:21 +0000
treeherdermozilla-aurora@8849dd1a4a79 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlong
bugs1253693
milestone47.0a1
Bug 1253693 - Switch prefer-es6-class React .eslintrc to prefer createClass. r=jlong MozReview-Commit-ID: 1IuYNShuBwH
devtools/.eslintrc
--- a/devtools/.eslintrc
+++ b/devtools/.eslintrc
@@ -35,17 +35,17 @@
 
     // Rules from the React plugin
     "react/display-name": 1,
     "react/no-danger": 1,
     "react/no-did-mount-set-state": 1,
     "react/no-did-update-set-state": 1,
     "react/no-direct-mutation-state": 1,
     "react/no-unknown-property": 1,
-    "react/prefer-es6-class": 1,
+    "react/prefer-es6-class": [1, "never"],
     "react/prop-types": 1,
     "react/sort-comp": [1, {
       order: [
         "propTypes",
         "everything-else",
         "render"
       ]
     }],