Bug 1372427 - add rest of rules which don't affect the code. r=mattn
MozReview-Commit-ID: GCUHw9WcVc7
--- 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",
},
};