Bug 1554169 - Enable some ESLint rules for more of netwerk/. r=dragana

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2019-05-29 10:50:37 +00:00
Родитель d2dc3fe4d7
Коммит 0ad6e198b0
2 изменённых файлов: 66 добавлений и 4 удалений

Просмотреть файл

@ -15,10 +15,6 @@ obj*/**
# If you are enabling a directory, please add directory specific exclusions
# below.
layout/**
netwerk/cookie/test/browser/**
netwerk/test/browser/**
netwerk/test/mochitests/**
netwerk/test/unit*/**
# We currently have no js files in these directories, so we ignore them by
# default to aid ESLint's performance.

Просмотреть файл

@ -193,5 +193,71 @@ module.exports = {
"space-before-function-paren": "off",
"space-infix-ops": "off",
}
}, {
"files": [
"netwerk/cookie/test/browser/**",
"netwerk/test/browser/**",
"netwerk/test/mochitests/**",
"netwerk/test/unit*/**",
],
"rules": {
"object-shorthand": "off",
"mozilla/consistent-if-bracing": "off",
"mozilla/reject-importGlobalProperties": "off",
"mozilla/no-arbitrary-setTimeout": "off",
"mozilla/no-define-cc-etc": "off",
"mozilla/no-useless-parameters": "off",
"mozilla/no-useless-run-test": "off",
"mozilla/use-chromeutils-generateqi": "off",
"mozilla/use-chromeutils-import": "off",
"mozilla/use-default-preference-values": "off",
"mozilla/use-services": "off",
"consistent-return": "off",
"no-array-constructor": "off",
"no-extra-boolean-cast": "off",
"no-eval": "off",
"no-else-return": "off",
"no-global-assign": "off",
"no-lonely-if": "off",
"no-nested-ternary": "off",
"no-new-wrappers": "off",
"no-redeclare": "off",
"no-return-await": "off",
"no-sequences": "off",
"no-shadow": "off",
"no-throw-literal": "off",
"no-undef": "off",
"no-unreachable": "off",
"no-unused-vars": "off",
"no-useless-return": "off",
// Not enabling the rules below for now pending prettier roll-out.
"arrow-spacing": "off",
"block-spacing": "off",
"brace-style": "off",
"comma-dangle": "off",
"comma-spacing": "off",
"comma-style": "off",
"eol-last": "off",
"func-call-spacing": "off",
"generator-star-spacing": "off",
"key-spacing": "off",
"keyword-spacing": "off",
"no-extra-semi": "off",
"no-tabs": "off",
"no-mixed-spaces-and-tabs": "off",
"no-multi-spaces": "off",
"no-trailing-spaces": "off",
"no-whitespace-before-property": "off",
"padded-blocks": "off",
"quotes": "off",
"rest-spread-spacing": "off",
"semi": "off",
"space-before-blocks": "off",
"space-before-function-paren": "off",
"space-infix-ops": "off",
"space-unary-ops": "off",
"spaced-comment": "off",
}
}]
};