Bug 1372427 - add rest of rules which don't affect the code. r=mattn draft
authorJonathan Guillotte-Blouin <jguillotteblouin@mozilla.com>
Wed, 14 Jun 2017 18:09:29 -0700
changeset 597800 7921e6500579492281a42afe296cb12c051b4bf4
parent 597799 06de2a7b088f284f1b8c89c1a75d33d877af0b5f
child 597801 9f7e43bc2bfaaddc3872083a6b23f831070d2858
push id65027
push userbmo:jguillotteblouin@mozilla.com
push dateTue, 20 Jun 2017 23:30:25 +0000
reviewersmattn
bugs1372427
milestone56.0a1
Bug 1372427 - add rest of rules which don't affect the code. r=mattn MozReview-Commit-ID: GCUHw9WcVc7
toolkit/components/satchel/.eslintrc.js
--- a/toolkit/components/satchel/.eslintrc.js
+++ b/toolkit/components/satchel/.eslintrc.js
@@ -1,12 +1,13 @@
 "use strict";
 
 module.exports = {
   rules: {
+    "mozilla/no-cpows-in-tests": "error",
     "mozilla/var-only-at-top-level": "error",
 
     curly: ["error", "all"],
     indent: ["error", 2, {
       SwitchCase: 1,
       CallExpression: {
         arguments: "first",
       },
@@ -51,10 +52,21 @@ module.exports = {
     "no-throw-literal": "error",
     "padded-blocks": ["error", "never"],
     radix: "error",
     "array-bracket-spacing": ["error", "never"],
     "space-in-parens": ["error", "never"],
     "comma-dangle": ["error", "always-multiline"],
     "dot-notation": "error",
     "semi-spacing": ["error", {"before": false, "after": true}],
+    "max-nested-callbacks": ["error", 4],
+    "no-multi-str": "error",
+    "comma-style": "error",
+    "generator-star-spacing": ["error", "after"],
+    "new-parens": "error",
+    "no-unused-expressions": "error",
+    "no-console": "error",
+    "no-proto": "error",
+    "no-unneeded-ternary": "error",
+    yoda: "error",
+    "no-new-wrappers": "error",
   },
 };