зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1354513 - Removed duplicate ESLint recommended rules in formautofill r=standard8
MozReview-Commit-ID: EI7C0nnfqUl --HG-- extra : rebase_source : 75a7a658e2b493e13449071d492b6f880fc7b00c
This commit is contained in:
Родитель
7eb0555001
Коммит
df4186eac4
|
@ -1,12 +1,8 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
"extends": "../../.eslintrc.js",
|
||||
|
||||
"globals": {
|
||||
"addMessageListener": false,
|
||||
"Components": true,
|
||||
"dump": true,
|
||||
"removeMessageListener": false,
|
||||
"sendAsyncMessage": false,
|
||||
"TextDecoder": false,
|
||||
|
@ -34,10 +30,7 @@ module.exports = {
|
|||
"requireReturn": false,
|
||||
"requireReturnDescription": false,
|
||||
}],
|
||||
|
||||
// Braces only needed for multi-line arrow function blocks
|
||||
// "arrow-body-style": ["error", "as-needed"],
|
||||
|
||||
|
||||
// Forbid spaces inside the square brackets of array literals.
|
||||
"array-bracket-spacing": ["error", "never"],
|
||||
|
||||
|
@ -46,11 +39,7 @@ module.exports = {
|
|||
|
||||
// No space padding in parentheses
|
||||
"space-in-parens": ["error", "never"],
|
||||
|
||||
// Enforce one true brace style (opening brace on the same line) and avoid
|
||||
// start and end braces on the same line.
|
||||
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
|
||||
|
||||
|
||||
// Commas at the end of the line not the start
|
||||
"comma-style": "error",
|
||||
|
||||
|
@ -63,18 +52,12 @@ module.exports = {
|
|||
// Two space indent
|
||||
"indent": ["error", 2, {"SwitchCase": 1}],
|
||||
|
||||
// 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",
|
||||
|
||||
// Use [] instead of Array()
|
||||
"no-array-constructor": "error",
|
||||
|
||||
// If an if block ends with a return no need for an else block
|
||||
// "no-else-return": "error",
|
||||
|
||||
|
||||
// Disallow empty statements. This will report an error for:
|
||||
// try { something(); } catch (e) {}
|
||||
// but will not report it for:
|
||||
|
@ -97,9 +80,6 @@ module.exports = {
|
|||
// Always require semicolon at end of statement
|
||||
"semi": ["error", "always"],
|
||||
|
||||
// Require spaces around operators, except for a|"off".
|
||||
"space-infix-ops": ["error", {"int32Hint": true}],
|
||||
|
||||
// Disallow using variables outside the blocks they are defined (especially
|
||||
// since only let and const are used, see "no-var").
|
||||
"block-scoped-var": "error",
|
||||
|
@ -111,10 +91,6 @@ module.exports = {
|
|||
// Warn about cyclomatic complexity in functions.
|
||||
"complexity": ["error", {"max": 20}],
|
||||
|
||||
// Don't warn for inconsistent naming when capturing this (not so important
|
||||
// with auto-binding fat arrow functions).
|
||||
// "consistent-this": ["error", "self"],
|
||||
|
||||
// Enforce dots on the next line with property name.
|
||||
"dot-location": ["error", "property"],
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче