summaryrefslogtreecommitdiffstats
path: root/devtools/.eslintrc.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /devtools/.eslintrc.js
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-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.js8
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().