gecko-dev/toolkit/components/reader/.eslintrc.mjs
Mark Banner e9f37148d7 Bug 1881702 - Fix no-unused-vars issues raised by the upgrade to ESLint v9. r=frontend-codestyle-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,devtools-reviewers,migration-reviewers,android-reviewers,webcompat-reviewers,nchevobbe,mossop,sparky,twisniewski,ohall
This disables caughtErrors from everywhere. This is enabled by default in v9. We should work to enable this later.
This also changes the exported comments - ESLint is more strict about what it can handle, and doesn't like a star
in the middle of the comment.
Also tidies up some rules where they are no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D251253
2025-05-29 08:30:32 +00:00

15 lines
419 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
export default [
{
rules: {
"no-inner-declarations": "error",
"no-unused-vars": [
"error",
{ vars: "all", caughtErrors: "none", argsIgnorePattern: "^_" },
],
},
},
];