forked from mirrors/gecko-dev
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:
parent
d2dc3fe4d7
commit
0ad6e198b0
2 changed files with 66 additions and 4 deletions
|
|
@ -15,10 +15,6 @@ obj*/**
|
||||||
# If you are enabling a directory, please add directory specific exclusions
|
# If you are enabling a directory, please add directory specific exclusions
|
||||||
# below.
|
# below.
|
||||||
layout/**
|
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
|
# We currently have no js files in these directories, so we ignore them by
|
||||||
# default to aid ESLint's performance.
|
# default to aid ESLint's performance.
|
||||||
|
|
|
||||||
66
.eslintrc.js
66
.eslintrc.js
|
|
@ -193,5 +193,71 @@ module.exports = {
|
||||||
"space-before-function-paren": "off",
|
"space-before-function-paren": "off",
|
||||||
"space-infix-ops": "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",
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue