gecko-dev/toolkit/components/passwordmgr/.eslintrc.js
Patricia Lawless 1f4905a876 Bug 1522722 - Added eslint space-in-parens rule and fixed corresponding errors. r=MattN
Added "space-in-parens": ["error"] to eslint for passwordmgr, and fixed the 5 errors found.

Differential Revision: https://phabricator.services.mozilla.com/D17697

--HG--
extra : moz-landing-system : lando
2019-01-25 22:33:21 +00:00

33 lines
894 B
JavaScript

"use strict";
module.exports = {
"rules": {
"brace-style": ["error", "1tbs", {"allowSingleLine": false}],
// XXX Bug 1358949 - This should be reduced down - probably to 20 or to
// be removed & synced with the mozilla/recommended value.
"complexity": ["error", 56],
"indent": ["error", 2, {
ignoredNodes: ["ConditionalExpression"],
ArrayExpression: "first",
SwitchCase: 1,
CallExpression: {
arguments: "first",
},
FunctionExpression: {
parameters: "first",
},
FunctionDeclaration: {
parameters: "first",
},
MemberExpression: "off",
ObjectExpression: "first",
outerIIFEBody: 0,
}],
"curly": ["error", "all"],
"no-unused-vars": ["error", {"args": "none", "vars": "local", "varsIgnorePattern": "^(ids|ignored|unused)$"}],
"space-in-parens": ["error"],
}
};