.eslintrc.js 579 B

12345678910111213141516
  1. "use strict";
  2. module.exports = {
  3. // Extend from the devtools eslintrc.
  4. "extends": "../../.eslintrc.js",
  5. "rules": {
  6. // The inspector is being migrated to HTML and cleaned of
  7. // chrome-privileged code, so this rule disallows requiring chrome
  8. // code. Some files in the inspector disable this rule still. The
  9. // goal is to enable the rule globally on all files.
  10. /* eslint-disable max-len */
  11. "mozilla/reject-some-requires": ["error", "^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm|devtools/shared/platform/(chome|content)/.*)$"],
  12. },
  13. };