diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /devtools/.eslintrc.js | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 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(). |