From da4c7e7ed675c3bf405668739c3012d140856109 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:42 +0200 Subject: Adding upstream version 126.0. Signed-off-by: Daniel Baumann --- devtools/.eslintrc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'devtools/.eslintrc.js') 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(). -- cgit v1.2.3