Bug 1354519 - De-duplicate already ESLint recommended rules in toolkit/components/passwordmgr/.eslintrc.js. r?standard8 draft
authorHemant Singh Patwal <hemantsingh1612@gmail.com>
Wed, 26 Apr 2017 22:24:19 +0530
changeset 568840 c0f313ea3aa016bc08b9b3e89c7053b162b6eba2
parent 568807 a477e80f03b61be9961bc61770a2b55cce139b91
child 626041 fa8e8e852f614f56da0d37f12cfd48d3b2dd7b3c
push id55996
push userbmo:hemantsingh1612@gmail.com
push dateWed, 26 Apr 2017 17:02:30 +0000
reviewersstandard8
bugs1354519
milestone55.0a1
Bug 1354519 - De-duplicate already ESLint recommended rules in toolkit/components/passwordmgr/.eslintrc.js. r?standard8 MozReview-Commit-ID: 8QjmEmRz7YJ
toolkit/components/passwordmgr/.eslintrc.js
--- a/toolkit/components/passwordmgr/.eslintrc.js
+++ b/toolkit/components/passwordmgr/.eslintrc.js
@@ -1,40 +1,15 @@
 "use strict";
 
 module.exports = {
-  "extends": "../../.eslintrc.js",
+
   "rules": {
-    // Require spacing around =>
-    "arrow-spacing": "error",
-
-    // No newline before open brace for a block
-    "brace-style": ["error", "1tbs", {"allowSingleLine": true}],
-
-    // No space before always a space after a comma
-    "comma-spacing": ["error", {"before": false, "after": true}],
-
-    // Commas at the end of the line not the start
     "comma-style": "error",
-
     // XXX Bug 1358949 - This should be reduced down - probably to 20 or to
     // be removed & synced with the mozilla/recommended value.
     "complexity": ["error", 43],
 
-    // Use [] instead of Array()
     "no-array-constructor": "error",
-
-    // Use {} instead of new Object()
-    "no-new-object": "error",
-
-    // No using undeclared variables
-    "no-undef": "error",
-
-    // Don't allow unused local variables unless they match the pattern
     "no-unused-vars": ["error", {"args": "none", "vars": "local", "varsIgnorePattern": "^(ids|ignored|unused)$"}],
-
-    // Always require semicolon at end of statement
     "semi": ["error", "always"],
-
-    // Require spaces around operators
-    "space-infix-ops": "error",
   }
 };