diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /devtools/.eslintrc.js | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/.eslintrc.js')
-rw-r--r-- | devtools/.eslintrc.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/.eslintrc.js b/devtools/.eslintrc.js index 2b642f6bb6..9ccbfa1d95 100644 --- a/devtools/.eslintrc.js +++ b/devtools/.eslintrc.js @@ -64,7 +64,7 @@ module.exports = { // For all head*.js files, turn off no-unused-vars at a global level files: ["**/head*.js"], rules: { - "no-unused-vars": ["error", { args: "none", vars: "local" }], + "no-unused-vars": ["error", { argsIgnorePattern: "^_", vars: "local" }], }, }, { @@ -233,9 +233,9 @@ module.exports = { // random name. // Still, making this a warning can help people avoid being confused. "no-shadow": "error", - // Disallow global and local variables that aren't used, but allow unused - // function arguments. - "no-unused-vars": ["error", { args: "none", vars: "all" }], + // Disallow global and local variables that aren't used. Allow unused + // function arguments prefixed with `_`. + "no-unused-vars": ["error", { argsIgnorePattern: "^_", vars: "all" }], // Enforce using `let` only when variables are reassigned. "prefer-const": ["error", { destructuring: "all" }], // Require use of the second argument for parseInt(). |