Bug 1265796 - add .eslintrc to devtools/shared/platform/content/; r?gregtatum draft
authorTom Tromey <tom@tromey.com>
Mon, 19 Sep 2016 09:16:34 -0600
changeset 416174 b913b21120784658ab883ea16c71ab77854e9425
parent 416173 bbc5ae354f49d194b1027563a5e6b9b153ad8fab
child 416175 f2785890bf2469f62828631844071bc14e6f0cfb
child 416671 6ac7532e456fe113bf42cfcb836a8d08d7605c9f
push id30051
push userbmo:ttromey@mozilla.com
push dateWed, 21 Sep 2016 16:39:05 +0000
reviewersgregtatum
bugs1265796
milestone52.0a1
Bug 1265796 - add .eslintrc to devtools/shared/platform/content/; r?gregtatum devtools/shared/platform/content/ should never require chrome or a few other things; enforce this with eslint. MozReview-Commit-ID: DLgWITOvWeB
devtools/shared/platform/content/.eslintrc
new file mode 100644
--- /dev/null
+++ b/devtools/shared/platform/content/.eslintrc
@@ -0,0 +1,9 @@
+{
+  // Extend from the devtools eslintrc.
+  "extends": "../../../.eslintrc",
+
+  "rules": {
+    // All code in this directory must be content-clean.
+    "mozilla/reject-some-requires": [2, "^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm|devtools/shared/platform/(chome|content)/.*)$"],
+  },
+}