Bug 1411231 - Disable react/prefer-es6-class eslint option r=pbro
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Tue, 24 Oct 2017 12:50:31 +0100
changeset 685746 b627cabbeec98ba6a6d528db492f5fa70180ba0a
parent 685745 75a8c05fb7d2519a5ba66eaa6c967d374f1dbdbe
child 685747 51484f33898df80318c982ccc5bf8218c81185b0
push id86016
push userkgupta@mozilla.com
push dateWed, 25 Oct 2017 01:53:44 +0000
reviewerspbro
bugs1411231
milestone58.0a1
Bug 1411231 - Disable react/prefer-es6-class eslint option r=pbro MozReview-Commit-ID: GR2fujyjw5j
devtools/.eslintrc.js
--- a/devtools/.eslintrc.js
+++ b/devtools/.eslintrc.js
@@ -52,17 +52,17 @@ module.exports = {
 
     // Rules from the React plugin
     "react/display-name": "error",
     "react/no-danger": "error",
     "react/no-did-mount-set-state": "error",
     "react/no-did-update-set-state": "error",
     "react/no-direct-mutation-state": "error",
     "react/no-unknown-property": "error",
-    "react/prefer-es6-class": ["error", "never"],
+    "react/prefer-es6-class": ["off", "always"],
     "react/prop-types": "error",
     "react/sort-comp": ["error", {
       order: [
         "lifecycle",
         "everything-else",
         "render"
       ],
       groups: {