Bug 1315922 - enable react/prop-types eslint rule for devtools;r=jryans draft
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 08 Nov 2016 11:33:48 +0100
changeset 463316 205c462d21285a87d7c846b437ea481ea27b454c
parent 463315 41283e79b7b13827115421527df5ee4efbdcec50
child 542630 c78eed4663fbbe1b228ec4b163702ae84d1c0c4b
push id42014
push userjdescottes@mozilla.com
push dateWed, 18 Jan 2017 20:17:21 +0000
reviewersjryans
bugs1315922
milestone53.0a1
Bug 1315922 - enable react/prop-types eslint rule for devtools;r=jryans MozReview-Commit-ID: KT0v8CQ6DON
devtools/.eslintrc.js
--- a/devtools/.eslintrc.js
+++ b/devtools/.eslintrc.js
@@ -51,18 +51,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": ["warn", "never"],
-    // Disabled temporarily until errors are fixed.
-    "react/prop-types": "off",
+    "react/prop-types": "error",
     "react/sort-comp": ["error", {
       order: [
         "lifecycle",
         "everything-else",
         "render"
       ],
       groups: {
         lifecycle: [