mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
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:
parent
d0791aa9fe
commit
2fed5cd52a
@ -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
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user