mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1553926 - Add fetch-options eslint plugin to mozilla central r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D32723 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
a8747fe17d
commit
6c4e640dae
@ -14,11 +14,11 @@ module.exports = {
|
||||
"plugins": [
|
||||
"import", // require("eslint-plugin-import")
|
||||
"react", // require("eslint-plugin-react")
|
||||
"jsx-a11y" // require("eslint-plugin-jsx-a11y")
|
||||
"jsx-a11y", // require("eslint-plugin-jsx-a11y")
|
||||
|
||||
// Temporarily disabled since they aren't vendored into in mozilla central yet
|
||||
// "react-hooks", // require("react-hooks")
|
||||
// "fetch-options", // require("eslint-plugin-fetch-options")
|
||||
"fetch-options", // require("eslint-plugin-fetch-options")
|
||||
],
|
||||
"settings": {
|
||||
"react": {
|
||||
@ -68,7 +68,7 @@ module.exports = {
|
||||
"rules": {
|
||||
// "react-hooks/rules-of-hooks": 2,
|
||||
|
||||
// "fetch-options/no-fetch-credentials": 2,
|
||||
"fetch-options/no-fetch-credentials": 2,
|
||||
|
||||
"react/jsx-boolean-value": [2, "always"],
|
||||
"react/jsx-closing-bracket-location": [2, "after-props"],
|
||||
|
38
package-lock.json
generated
38
package-lock.json
generated
@ -66,9 +66,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/parser": {
|
||||
"version": "7.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.4.4.tgz",
|
||||
"integrity": "sha512-5pCS4mOsL+ANsFZGdvNLybx4wtqAZJ0MJjMHxvzI3bvIsz6sQvzW8XX92EYIkiPtIvcfG3Aj+Ir5VNyjnZhP7w==",
|
||||
"version": "7.4.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.4.5.tgz",
|
||||
"integrity": "sha512-9mUqkL1FF5T7f0WDFfAoDdiMVPWsdD1gZYzSnaXsxUCUqzuch/8of9G3VUSNiZmMBoRxT3neyVsqeiL/ZPcjew==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/template": {
|
||||
@ -83,16 +83,16 @@
|
||||
}
|
||||
},
|
||||
"@babel/traverse": {
|
||||
"version": "7.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.4.4.tgz",
|
||||
"integrity": "sha512-Gw6qqkw/e6AGzlyj9KnkabJX7VcubqPtkUQVAwkc0wUMldr3A/hezNB3Rc5eIvId95iSGkGIOe5hh1kMKf951A==",
|
||||
"version": "7.4.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.4.5.tgz",
|
||||
"integrity": "sha512-Vc+qjynwkjRmIFGxy0KYoPj4FdVDxLej89kMHFsWScq999uX+pwcX4v9mWRjW0KcAYTPAuVQl2LKP1wEVLsp+A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
"@babel/generator": "^7.4.4",
|
||||
"@babel/helper-function-name": "^7.1.0",
|
||||
"@babel/helper-split-export-declaration": "^7.4.4",
|
||||
"@babel/parser": "^7.4.4",
|
||||
"@babel/parser": "^7.4.5",
|
||||
"@babel/types": "^7.4.4",
|
||||
"debug": "^4.1.0",
|
||||
"globals": "^11.1.0",
|
||||
@ -573,6 +573,12 @@
|
||||
"eslint-rule-composer": "^0.3.0"
|
||||
}
|
||||
},
|
||||
"eslint-plugin-fetch-options": {
|
||||
"version": "0.0.5",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-fetch-options/-/eslint-plugin-fetch-options-0.0.5.tgz",
|
||||
"integrity": "sha512-ZMxrccsOAZ7uMQ4nMvPJLqLg6oyLF96YOEwTKWAIbDHpwWUp1raXALZom8ikKucaEnhqWSRuBWI8jBXveFwkJg==",
|
||||
"dev": true
|
||||
},
|
||||
"eslint-plugin-file-header": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-file-header/-/eslint-plugin-file-header-0.0.1.tgz",
|
||||
@ -1500,9 +1506,9 @@
|
||||
}
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.3.0.tgz",
|
||||
"integrity": "sha512-EsI+s3k3XsW+fU8fQACLN59ky34AZ14LoeVZpYwmZvldCFo0r0gnelwF2TcMjLor/BTL5aDJVBMkss0dthToPw==",
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
|
||||
"integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"inherits": "^2.0.3",
|
||||
@ -1517,9 +1523,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"resolve": {
|
||||
"version": "1.10.1",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.1.tgz",
|
||||
"integrity": "sha512-KuIe4mf++td/eFb6wkaPbMDnP6kObCaEtIDuHOUED6MNUo4K670KZUHuuvYPZDxNF0WVLw49n06M2m2dXphEzA==",
|
||||
"version": "1.11.1",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.1.tgz",
|
||||
"integrity": "sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"path-parse": "^1.0.6"
|
||||
@ -1718,9 +1724,9 @@
|
||||
}
|
||||
},
|
||||
"table": {
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/table/-/table-5.3.3.tgz",
|
||||
"integrity": "sha512-3wUNCgdWX6PNpOe3amTTPWPuF6VGvgzjKCaO1snFj0z7Y3mUPWf5+zDtxUVGispJkDECPmR29wbzh6bVMOHbcw==",
|
||||
"version": "5.4.0",
|
||||
"resolved": "https://registry.npmjs.org/table/-/table-5.4.0.tgz",
|
||||
"integrity": "sha512-nHFDrxmbrkU7JAFKqKbDJXfzrX2UBsWmrieXFTGxiI5e4ncg3VqsZeI4EzNmX0ncp4XNGVeoxIWJXfCIXwrsvw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ajv": "^6.9.1",
|
||||
|
@ -18,6 +18,7 @@
|
||||
"eslint-plugin-mozilla": "file:tools/lint/eslint/eslint-plugin-mozilla",
|
||||
"eslint-plugin-no-unsanitized": "3.0.2",
|
||||
"eslint-plugin-prettier": "3.0.1",
|
||||
"eslint-plugin-fetch-options": "0.0.5",
|
||||
"eslint-plugin-react": "7.12.4",
|
||||
"eslint-plugin-spidermonkey-js": "file:tools/lint/eslint/eslint-plugin-spidermonkey-js",
|
||||
"prettier": "1.17.0"
|
||||
|
@ -81,6 +81,7 @@ module.exports = {
|
||||
|
||||
// When adding items to this file please check for effects on sub-directories.
|
||||
"plugins": [
|
||||
"fetch-options",
|
||||
"mozilla",
|
||||
"no-unsanitized",
|
||||
],
|
||||
@ -134,6 +135,10 @@ module.exports = {
|
||||
// Always require a trailing EOL
|
||||
"eol-last": "error",
|
||||
|
||||
// XXX This rule should be enabled, see Bug 1557040
|
||||
// No credentials submitted with fetch calls
|
||||
"fetch-options/no-fetch-credentials": "off",
|
||||
|
||||
// No spaces between function name and parentheses
|
||||
"func-call-spacing": "error",
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
"visibility": "public",
|
||||
"filename": "eslint.tar.gz",
|
||||
"unpack": true,
|
||||
"digest": "22cfcfd566879b68dbc972a7b503b56c5ec1a923e5727d874ff94135ebeb0619494f5b08b060168c6068cf6504de6dbdf098b51f04610db88065dc2fa966cb74",
|
||||
"size": 7372571
|
||||
"digest": "d1312d75280e492e0e31b1d76ae819530eb15a089b68bfdeb7c1a21605f76bded4b2d1a04243d24a74471ac0cf4c422756cb34d920f6294e9c19826f7d74a846",
|
||||
"size": 7375917
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user