Bug 1354515 - Removed duplicate ESLint rules in security/manager r=standard8

MozReview-Commit-ID: 8H7iE1wu2hW

--HG--
extra : rebase_source : 18c334e356a56ee9d5a8bb0f74586f329ba3114c
This commit is contained in:
Rajesh Kathiriya 2017-04-22 15:41:34 +05:30
parent d0791aa9fe
commit 2fed5cd52a

View File

@ -26,18 +26,9 @@ module.exports = {
// Require `foo.bar` dot notation instead of `foo["bar"]` notation.
"dot-notation": "error",
// Always require a trailing EOL
"eol-last": "error",
// No spaces between function name and parentheses.
"func-call-spacing": ["error", "never"],
// Require function* name()
"generator-star-spacing": ["error", {"before": false, "after": true}],
// Space after colon not before in property declarations
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
// Always require parenthesis for new calls
"new-parens": "error",
@ -85,9 +76,6 @@ module.exports = {
// No reassigning native JS objects or read only globals.
"no-global-assign": "error",
// Disallow implied eval().
"no-implied-eval": "error",
// Disallow primitive wrapper instances like `new Boolean(false)`, which
// seem like they should act like primitives but don't.
"no-new-wrappers": "error",
@ -111,9 +99,6 @@ module.exports = {
// |throw new Error("error")|)
"no-throw-literal": "error",
// No using undeclared variables
"no-undef": "error",
// Disallow unmodified loop conditions.
"no-unmodified-loop-condition": "error",
@ -149,9 +134,6 @@ module.exports = {
// No space padding in parentheses
"space-in-parens": ["error", "never"],
// Require spaces around operators
"space-infix-ops": "error",
// ++ and -- should not need spacing
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
@ -167,10 +149,5 @@ module.exports = {
// Disallow Yoda conditions.
"yoda": ["error", "never"],
},
"globals": {
"Components": false,
"dump": false
}
};