Bug 1754025 [wpt PR 32729] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / remote / .eslintrc.js
blobb741460e955bf50a2b5a265c730ee9ebd0a3d722
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 "use strict";
7 module.exports = {
8   rules: {
9     "no-undef-init": "error",
10     // This is usually only applied to jsm or jsm.js files.
11     // But marionette modules are JS files without a jsm extension and use
12     // the EXPORT_SYMBOLS syntax.
13     "mozilla/mark-exported-symbols-as-used": "error",
14   },
15   overrides: [
16     {
17       // The mozilla recommended configuration is not strict enough against
18       // regular javascript files, compared to JSM. Enforce no-unused-vars on
19       // "all" variables, not only "local" ones.
20       files: ["*"],
21       // test head files and html files typically define global variables
22       // intended to be used by other files and should not be affected by
23       // this override.
24       excludedFiles: ["**/test/**/head.js", "**/test/**/*.html"],
25       rules: {
26         "no-unused-vars": [
27           "error",
28           {
29             args: "none",
30             vars: "all",
31           },
32         ],
33       },
34     },
35   ],