mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
b5a4cb3848
Differential Revision: https://phabricator.services.mozilla.com/D34535 --HG-- extra : source : 74ed7ee773393d305c4e948a57a1b1e32b1f12e8 extra : intermediate-source : 403d0757d61683e0a85d0bb07768eb39fbd0af72
16 lines
678 B
JavaScript
16 lines
678 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/. */
|
|
|
|
"use strict";
|
|
|
|
module.exports = {
|
|
"rules": {
|
|
// The netmonitor is being migrated to HTML and cleaned of
|
|
// chrome-privileged code, so this rule disallows requiring chrome
|
|
// code. Some files in the netmonitor disable this rule still. The
|
|
// goal is to enable the rule globally on all files.
|
|
"mozilla/reject-some-requires": ["error", "^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm|devtools/shared/platform/(chome|content)/.*)$"],
|
|
},
|
|
};
|