diff --git a/.eslintignore b/.eslintignore index dd7b54f13ba5..8fde0188f071 100644 --- a/.eslintignore +++ b/.eslintignore @@ -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. diff --git a/.eslintrc.js b/.eslintrc.js index 2da37d8ab09c..36ba19caf35c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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", + } }] };