Bug 1301287 - Password manager: enable eslint no-array-constructor rule. r=johannh
MozReview-Commit-ID: 61PSYdgzDz2
--- a/toolkit/components/passwordmgr/.eslintrc
+++ b/toolkit/components/passwordmgr/.eslintrc
@@ -8,16 +8,19 @@
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
// No space before always a space after a comma
"comma-spacing": [2, {"before": false, "after": true}],
// Commas at the end of the line not the start
"comma-style": 2,
+ // Use [] instead of Array()
+ "no-array-constructor": 2,
+
// Use {} instead of new Object()
"no-new-object": 2,
// No using undeclared variables
"no-undef": 2,
// Don't allow unused local variables unless they match the pattern
"no-unused-vars": [2, {"args": "none", "vars": "local", "varsIgnorePattern": "^(ids|ignored|unused)$"}],